import re
s = input()
k1 = 'keyence'
k2 = 'keyofscience'
ans = 'NO'
for i in range(len(k1)):
    a = '^'+k1[:i]+'.*?'+k1[i+1:]+'$'
    if re.match(a,s):
        ans = 'YES'
for i in range(len(k2)):
    a = '^'+k2[:i]+'.*?'+k2[i+1:]+'$'
    if re.match(a,s):
        ans = 'YES'
print(ans)
