s=input().split() holiday=["Sun","Sat"] if s[0] in holiday: if s[1] in holiday: print("8/33") else: print("8/32") else: print("8/31")