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