S = input()
ans = 0



for i in range(len(S)):
    for j in range(i+1,len(S)+1):
        S_ = list(S)
        del S_[i:j]
        re = "".join(S_)
        if re != "keyence":
            continue
        print("YES")
        ans = 1
        break
if S == "keyence":
    print("YES")
    ans = 1

if ans == 0:
    print("NO")
