s = list(input().split()) s.sort() if s==['Sat', 'Sun']: print('8/33') elif 'Sat' in s or 'Sun' in s: print('8/32') else: print('8/31')