s=input()
target="keyence"
flag=False
if target in s:
  flag=True
else:
  for i in range(1,7):
    l=target[:i]
    r=target[i:]
    try:
      indl=s.index(l)
      s.index(r,indl)
      flag=True
      break
    except:
      pass
if flag:
  print("YES")
else:
  print("NO")