s,t=map(str,input().split()) f=(s=="Sat" or s=="Sun") g=(t=="Sat" or t=="Sun") if(f and g): print("8/33") pass; elif(f): print("8/32") pass; else: print("8/31") pass;