T = 'keyence'
S = input()


t = 0
s = 0
cnt = 3
state = 1
while t < len(T) and s < len(S) and cnt:
    if T[t] == S[s]:
        t += 1
        s += 1
        if not state:
            state ^= 1
            cnt -= 1
    else:
        s += 1
        if state:
            state ^= 1
            cnt -= 1

if t == len(T) and cnt:
    print('YES')
else:
    print('NO')
