s = input()

s.find('keyence'[0:])
for i, _ in enumerate('keyence'):
    index = s.find('keyence'[i:])
    if index > 0 and s.find('keyence'[:i]) < index:
        print('YES')
        break
else:
    print('NO')
