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