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