ll = input().split() l = sorted(ll) if l == ['Sat', 'Sun']: print('8/33') elif ll[0] in ('Sat', 'Sun'): print('8/32') else: print('8/31')