a,b = map(str, input().split()) if a == 'Sat' or a == 'Sun': print('8/32') elif (a, b) == ('Sat', 'Sun') or (a, b) == ('Sun', 'Sat'): print('8/33') else: print('8/31')