import datetime,sys for l in sys.stdin:s=l.split(' ');print(datetime.datetime(int(s[0]),int(s[1]),int(s[2])).weekday()+1)%7
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page