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