s = gets.chomp
if (s + '') =~ /keyence/ then
  puts "YES"
elsif (s + '') =~ /k.*eyence/ then
  puts "YES"
elsif (s + '') =~ /ke.*yence/ then
  puts "YES"
elsif (s + '') =~ /key.*ence/ then
  puts "YES"
elsif (s + '') =~ /keye.*nce/ then
  puts "YES"
elsif (s + '') =~ /keyen.*ce/ then
  puts "YES"
elsif (s + '') =~ /keyenc.*e/ then
  puts "YES"
else
  puts "NO"
end
