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