import sys input = sys.stdin.readline a,b=input().split() if a in ["Sat","Sun"]: if b in ["Sat","Sun"]: print("8/33") else: print("8/32") else: print("8/31")