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

#define ESP 10e-6
#define MAX 12

double CalcCirclesLength(const vector<int> &r){
	double ret;
	ret = r[0];
	for(unsigned int i = 0; i < r.size() - 1; ++i){
		ret += 2 * sqrt((double)r[i]*r[i+1]);
	}
	ret += r[r.size() - 1];
	return ret;
}
int main(void){
	while(true){
		double w;
		double length = 0;
		vector<int> vLeftR;
		vector<int> vR;
		
		cin >> w;
		if( cin.eof() ) break;
		while( true ){
			int tmp;
			cin >> tmp;
			vLeftR.push_back(tmp);
			if( '\n' == cin.get() ) break;
		}

		vR.push_back(vLeftR[0]);
		vLeftR.erase( vLeftR.begin()+0 );
		while( vLeftR.size() > 0 ){
			double minlen = 241;
			int minins = 0;

			for(unsigned j = 0; j <= vR.size(); ++j){
				double l;
	
				vR.insert(vR.begin() + j,vLeftR[0]);
				l = CalcCirclesLength( vR );
				if( l < minlen ){
					minlen = l; minins = j;
				}
				vR.erase(vR.begin() + j);
			}
			vR.insert( vR.begin() + minins, vLeftR[0] );
			vLeftR.erase( vLeftR.begin() );
		}
		length = CalcCirclesLength( vR );
		if( fabs( length - w ) <= ESP || length <= w ) cout << "OK\n";
		else cout << "NA\n";
	}
	return 0;
}