# coding: UTF-8
import sys
#sys.setrecursionlimit(n)
import heapq
import re
import bisect
import random
import math
import itertools
from collections import defaultdict, deque
from copy import deepcopy
from decimal import *

s = input()

l = deque("keyence")

p = []
c = 0
for i in list(s):
    if l:
        if i == l[c]:
            p.append(i)
            l.popleft()

ss = ''.join(p)
if ss == "keyence":
    print("YES")
else:
    print("NO")