s=input()
keyence = 'keyence'
l,r = '',''
for i in range(7):
    if s[i]==keyence[i]:    l += s[i]
    else:   break
if l == keyence:
    print('YES')
    exit()
for i in range(1,8):
    if s[-i]==keyence[-i]:    r += s[-i]
    else:   break
if r[::-1] == keyence:
    print('YES')
    exit()
if l+r[::-1] == keyence:    print('YES')
else:   print('NO')
