a, b = input().split() cnt = 31 if a == 'Sat' or a == 'Sun' : cnt += 1 if b == 'Sat' or b == 'Sun' : cnt += 1 print('8/' + str(cnt))