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