s=input()
t="keyence"

ans=False
for i in range(len(t)):
    a=t[:i]
    b=t[i:]
    if s.find(a)==0 and s.find(b)!=-1:
        if s[s.find(b)+len(b):]=="":
            ans = True
            break

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