S = input()
rest = 0
c = "keyence1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
now = 0
flag = 1
complete = 0
for s in S:
    if s == c[now] and complete == 0:
        if complete == 0:
            now += 1
        if now > 6:
            complete = 1
        flag = 0
    else:
        if flag == 0:
            rest += 1
        flag = 1

    if rest > 1:
        print("NO")
        break
else:
    if complete:
        print("YES")
    else:
        print("NO")
