# coding: utf-8
S = input()
N = len(S)
k = "keyence"
flg = False
for i in range(len(k)):
    if S[:i+1]==k[:i+1] and S[N-i:]==k[len(k)-i:]:
        flg = True
    #print(S[:i+1], k[:i+1])
    #print(S[N-i:], k[N-i:])

if flg:
    print("YES")
else:
    print("NO")