#include <iostream>
#include <algorithm>
#include <vector>
#include <sstream>
#include <string>
#include <cmath>
using namespace std;

int W, N, R[12];
bool isUsed[12];


int abs(int x) {
  return x < 0 ? -x : x;
}

double calc(vector<int> v, int cnt) {
  int bfr;
  double sum;
  if(cnt % 2 == 0) {
    bfr = *v.begin();
    sum = *v.begin();
    v.erase(v.begin());
  } else {
    bfr = *(--v.end());
    sum = *(--v.end());
    v.erase(--v.end());
  }
  while(!v.empty()) {
    vector<int>::iterator it;
    if(cnt % 2 == 0) {
      it = v.end();
      it--;
    } else {
      it = v.begin();
    }

    sum += sqrt((bfr+*it)*(bfr+*it) - (bfr-*it)*(bfr-*it));
    bfr = *it;
    v.erase(it);
    cnt++;
  }
  sum += bfr;
  return sum;
}

void solve() {
  sort(R, R+N);
  vector<int> v;
  for(int i = 0; i < N; ++i) {
    v.push_back(R[i]);
  }
  if(min(calc(v, 0), calc(v, 1)) <= W) {
    cout << "OK" << endl;
  } else {
    cout << "NA" << endl;
  }
}

main() {
  while(1) {
    string str;
    getline(cin, str);
    if(cin.eof()) break;
    stringstream ss;
    ss << str;
    ss >> W;
    for(int i = 0; ; ++i) {
      if(ss.eof()) {
	N = i;
	break;
      }
      ss >> R[i];
    }
    solve();
  }
}