S = input().strip().split() d = 31 if S[0] in ['Sat', 'Sum']: d += 1 if S[1] in ['Sat', 'Sum']: d += 1 print('8/' + str(d))