s=list(input())
t=list("keyence")
j=0
c=0
for i in range(len(s)):
    if s[i]==t[c]:
        j+=1
        if j==7:
            if c!=0 and s.pop():
                print("YES")
                exit()
            elif c==0:
                print("YES")
                exit()
            else:
                break
        c+=1
print("NO")