#include <bits/stdc++.h>

using namespace std;

#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define EPS (1e-8)

int main() {
	string str;
	while (getline(cin, str)) {
		istringstream is(str);
		int n = count(str.c_str(), str.c_str() + str.size(), ' ');
		int w, r[10];
		is >> w;
		REP(i, n) is >> r[i];
		
		sort(r, r + n);
		double sum = r[0] / 2.0 + r[n - 1] / 2.0;
		FOR(i, 1, n) {
			sum += sqrt(pow(r[i] + r[i - 1], 2) - pow(abs(r[i] - r[i - 1]), 2));
		}
		if ((double)w + EPS >= sum) puts("OK");
		else puts("NA");
	}
	
	return 0;
}