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