a,b = input().split() f = lambda x: x in ('Sat', 'Sun') if f(a) and f(b): print('8/33') elif f(a): print('8/32') else: print('8/31')