S1, S2 = input().split() H = ['Sat', 'Sun'] if S1 in H and S2 in H: print('8/33') elif S1 in H: print('8/32') else: print('8/31')