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