a = str(input())
k = "keyence"
lk = len(k)

ok = 0

s1 = a.find(k)
s2 = len(a[s1:])
if s1 == 0 or s2 == lk:
    ok = 1

if len(a) >= lk:
    for i in range(lk):
        s1 = a.find(k[:i])
        s2 = a[s1+i:].find(k[i:])
        if s1 >= 0 and s2 >= 0:
            if s1 == 0 and len(a[s1+i+s2:]) == len(k[i:]):
                ok = 1

if ok == 1:
  print("YES")
else:
  print("NO")