S1, S2 = input().split() B1 = S1 == 'Sat' or S1 == 'Sun' B2 = S2 == 'Sat' or S2 == 'Sun' if B1 and B2: print("8/33") elif B1 or B2: print("8/32") else: print("8/31")