S = input()
rest = 0
c = "keyence"
now = 0
flag = 1
for s in S:
    if s == c[now]:
        now += 1
        flag = 0
        if now > 6:
            print("YES")
            break
    else:
        if flag == 0:
            rest += 1
        flag = 1

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