import time while 1:print-~time.strptime(raw_input(),'%Y %m %d')[6]%7
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page