s=input()
k="keyence"
c=0
f=0
t=0
pre=True
for i in range(len(s)):
    if c==7:
        t=1
        break
    elif f==2:
        break
    elif s[i]==k[c]:
        c+=1
        pre=True
    else:
        if pre:
            f+=1
        pre=False
if c==7:
    if f==1 and t==1:
        print("NO")
    else:
        print("YES")
else:
    print("NO")