s = gets.chomp

prefix = 7
7.times do |i|
  l = i + 1
  if s[0, l] != 'keyence'[0, l]
    prefix = l - 1
    break
  end
end
suffix = 7
7.times do |i|
  l = i + 1
  if s[-l, l] != 'keyence'[-l, l]
    suffix = l - 1
    break
  end
end
if prefix + suffix >= 7
  puts('YES')
else
  puts('NO')
end
