s=input()
x='keyence'
if s==x:
  print('YES')
  exit()
if s.count(x)>0:
  p=s.split('keyence')
  if p[0]=='' or p[1]=='':
    print('YES')
    exit()
  elif p[0]+p[1]=='keyence':
    print('YES')
    exit()
else:
  for i in range(1,len(x)):
    a=x[:i]
    b=x[i:]
    if s.count(a)>0 and s.count(b)>0:
      y=s.split(a)
      z=s.split(b)
      if (y[0]=='' and z[1]=='') or y[0]+y[1]=='keyence' or z[0]+z[1]=='keyence':
        print('YES')
        exit()
    else:
      continue
print('NO')