# For taking integer inputs.
import math
import sys


def inp():
    return(int(input()))


# For taking List inputs.
def inlist():
    return(list(map(int, input().split())))


# For taking string inputs. Actually it returns a List of Characters, instead of a string, which is easier to use in Python, because in Python, Strings are Immutable.
def instr():
    s = input()
    return(list(s[:len(s)]))


# For taking space seperated integer variable inputs.
def invr():
    return(map(int, input().split()))


s = input()

ck = "keyence"
pos = 0

for i in s:
    if ck[pos] == i:
        pos += 1
    if pos > 6:
        break
if pos > 6:
    print("YES")
else:
    print("NO")
