class Problem0841: def solve(this): s1,s2 = input().split() if (s1 == "Sat" or s1 == "Sun") and (s2 != "Sat" and s2 != "Sun"): print("8/32") elif (s1 == "Sat" or s1 == "Sun") and (s2 == "Sat" or s2 == "Sun"): print("8/33") else: print("8/31") if __name__ == "__main__": problem = Problem0841() problem.solve()