s1,s2=input().split() yasumi=["Sun","Sat"] if s1 in yasumi and s2 in yasumi: print("8/33") elif s1 in yasumi: print("8/32") else: print("8/31")