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