S1, S2 = input().split() h = ["Sat", "Sun"] if S1 in h and not S2 in h: print("8/32") elif S1 in h and S2 in h: print("8/33") else: print("8/31")