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