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