s=input()
t="keyence"
ans=True

for i in range(len(t)):
    if s.find(t[i])!=-1:
        s=s[s.find(t[i])+1:]
    else:
        ans = False
        break

if ans is True:
    print("YES")
else:
    print("NO")