m,d;main(i){for(i=4-getchar()%3*2;m++<12;)for(d=!printf("\n%02d:"+!~-m,m);d++<"*"[m];)++i%7||printf(" %02d",d);}