import sys
s = list(input())
S = list('keyence')
cur = 0
num = 0
for x in S:
    while x != s[cur]:
        cur += 1
        if cur == len(s):
            print('NO')
            sys.exit()
print('YES')