d=hash(input())%13%7 m=0 exec("s='%02d:'\ns+=' %02d'%-~d;d+=7;d%=31^m%7%2^4>>m&2\nif d<7:m+=1;print(s%m);"*52)