import re

keyence = "keyence"
S = raw_input()
ans = False
found = False
for i in range(len(keyence)+1):
  if re.match("^"+keyence[:i]+".*"+keyence[i:]+"$",S):
    ans = True
print "YES" if ans or S == keyence else "NO"
