(use srfi-19)(while(print(date-week-day(apply make-date(reverse`(0,#0=(read),#0#,#0#0 0 0 0))))))