# coding: utf-8

S = input()
key = 'keyence'
ctr = 0
ans = ''

for i in range(len(S)):
    if S[i] == key[ctr]:
       ans += S[i]
       ctr += 1
    if ctr == len(key):
        break
    
if ans == key:
    print('YES')
else:
    print('NO')
