a,b = input().split() if a == "Sun" or a == "Sat": if b == "Sun" or b == "Sat": print('8/33') else: print("8/32") else: print("8/31")