data = input().split(' ') if 'Sun' in data and 'Sat' in data: print('8/33') elif data[0] == 'Sat' or data[0] == 'Sun': print('8/32') else: print('8/31')