s = input()

if s == "keyence":
    print("YES")
    exit()


for bit in range(2 ** len(s)):
    ans = ""
    for j in range(len(s)):
        if (bit >> j) & 1:
            ans += s[j]

    if ans == "keyence":
        print("YES")
        exit()

print("NO")