S1, S2 = input().split() if S1 in 'SatSun' and S2 not in 'SatSun': print('8/32') elif S1 in 'SatSun' and S2 in 'SatSun': print('8/33') else: print('8/31')