S=input()
key='keyence'
ans='NO'
for i in range(len(key)):
    key1=key[:i]
    key2=key[i:]
    A=key1+'0'*(len(S)-len(key))+key2
    for l in range(len(S)):
        if all([S[l]==A[l] or A[l]=='0' for l in range(len(S))]):
            ans='YES'
            print(A)
print(ans)