# coding:utf-8

import sys
# from collections import Counter, defaultdict

INF = float('inf')
MOD = 10 ** 9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def SS(): return input()


S = SS()
n = 0
cnt = 0
key = 'keyence'
state = 0
for s in S:
    if s == key[n]:
        n += 1
        state = 0
    else:
        if state == 0:
            cnt += 1
        state = 1

    if cnt > 1:
        break
    if n == len(key) - 1:
        print('YES')
        exit()

print('NO')
