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