from calendar import* while~0:s=raw_input();f=zip(*monthcalendar(*map(int,s.split('-'))))[-3];print s+"-"+`f[-1]or f[-2]`
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page