#include <iostream>
#include <sstream>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;
double calc(vector<int>&v, int s, int n, int p,int b)
{
  if(n == 0) return p;
  double m = 100.0;
  for(int i=0; i<s; i++){
    if(!(b & (1 << i))){
	double d = calc(v,s,n-1,v[i],(b | (1 << i)));
	if(p == 0) d += v[i];
	else {
	  double q = p - v[i];
	  double r = p + v[i];
	  double cos = sqrt(1.0 - q * q / (r * r));
	  d += r * cos;
	}
	m = min(m, d);
    }
  }
  return m;
}
int main()
{
  string s;
  while(getline(cin, s)){
    istringstream in(s);
    int n=0, i;
    double w;
    vector<int> v;
    in >> w;
    while(in >> i){
      v.push_back(i);
      n++;
    }
    double r = calc(v,n,n,0,0);
    if(w < r) cout << "NA" << endl;
    else cout << "OK" << endl;
  }
  return 0;
}