S = input()
tmp = "keyence"
count = 0
flag = 0
index = 0

for i in range(0, len(S)):
    if(S[i] == tmp[index]):
        index += 1
        flag = 0
    elif flag == 0:
        count += 1
        flag = 1
    if count == 2:
        break

if index == 7 and count <= 1:
    print("YES")
else:
    print("NO")