def cul_length(a, b)
  a, b = b, a if (a > b)
  return 2 * (a * b) ** 0.5
end
while (line = gets)
  line = line.split(" ").map(&:to_i)
  length = line[0]
  line = line[1..-1].sort
  left, right = line[0], line[0]
  for i in 1..(line.size - 1) / 2
    if (i % 2 == 1)
      length -= cul_length(line[i], line[-i]) + cul_length(right, line[-i])
      right = line[i]
    else
      length -= cul_length(line[i], line[-i]) + cul_length(left, line[-i])
      left = line[i]
    end
  end
  if (line.size % 4 == 0)
    length -= cul_length(left, line[line.size / 2]) + line[line.size / 2] + right
  elsif (line.size % 4 == 2)
    length -= cul_length(right, line[line.size / 2]) + line[line.size / 2] + left
  else
    length -= right + left
  end
  if (length < 0)
    puts 'NA'
  else
    puts 'YES'
  end
end