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