from calendar import* setfirstweekday(6) for i in range(1,13): for m in month(2020,i).split('\n')[2:-1]:print'',m print