s1, s2 = input().split() if s1[0] == "M" and s2[0] == "M": print("8/33") elif s1[0] == "M": print("8/32") else: print("8/31")