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