S1,S2 = input().split() cnt = 0 if S1 == "Sun" or S1 == "Sat": cnt += 1 if S2 == "Sun" or S2 == "Sat": cnt += 2 if cnt == 1: print("8/32") elif cnt == 3: print("8/33") else: print("8/31")