l=list(input().split()) ll=["Sun","Sat"] if l[0] in ll and l[1] in ll: print("8/33") elif l[0] in ll : print("8/32") else: print("8/31")