s1, s2 = input().split() sat = "Sat" sun = "Sun" if s1 == s2 and s1 in [sat, sun]: ans = "8/33" elif s1 in [sat, sun]: ans = "8/32" else: ans = "8/31" print(ans)