s1, s2 = input().split() if s1 in ['Sat', 'Sun']: if s2 in ['Sat', 'Sun']: print('8/33') else: print('8/32') else: print('8/31')