s=list(input())
ans=''
cnt='NO'
for i in range(len(s)):
    if ans=='' and s[i]=='k':
        ans+=s[i]
    elif ans=='k' and s[i]=='e':
        ans+=s[i]
    elif ans=='ke' and s[i]=='y':
        ans+=s[i]
    elif ans=='key' and s[i]=='e':
        ans+=s[i]
    elif ans=='keye' and s[i]=='n':
        ans+=s[i]
    elif ans=='keyen' and s[i]=='c':
        ans+=s[i]
    elif ans=='keyenc' and s[i]=='e':
        ans+=s[i]
    if ans=='keyence':
        cnt='YES'
print(cnt)