var = gets
success = false


index = var.index('k')
if index
if var.index('eyence', index)
  puts 'YES'
  success = true
  exit
end
end


index = var.index('ke')
if index
if var.index('yence', index)
  puts 'YES'
  success = true
  exit
end
end

index = var.index('key')
if index
if var.index('ence', index)
  puts 'YES'
  success = true
  exit
end
end
index = var.index('keye')
if index
if var.index('nce', index)
  puts 'YES'
  success = true
  exit
end
end
index = var.index('keyen')
if index
if var.index('ce', index)
  puts 'YES'
  success = true
  exit
end
end
index = var.index('keyenc')
if index
if var.index('e', index)
  puts 'YES'
  success = true
  exit
end
end
if var.index('keyence')
  puts 'YES'
  success = true
  exit
end

unless success
  puts 'NO'
end