s,t = input().split() d = lambda x: x in ('Sat', 'Sun') if d(s): print('8/33' if d(t) else '8/32') else: print('8/31')