first = input() split_first = first.split() if str(split_first[0])[0] == "S" and str(split_first[1])[0] == "S": print("8/33") elif str(split_first[0])[0] == "S": print("8/32") else: print("8/31")