s = input()

keyence = 'keyence'
k = 0
for i in keyence:
    count = 0
    for j in range(k, len(s)):
        if i == s[j]:
            k = j+1
            count += 1
            break
    if count <= 0:
        print('NO')
        exit()

print('YES')

