#include<iostream>
#include<sstream>
#include<algorithm>
#include<cmath>
using namespace std;
int main(){
long b,r[12],i,j,n,a[12];
double t;
string s;
stringstream ss;
while(getline(cin,s)){
ss.str("");ss.clear();
ss<<s;
ss>>b;
for(i=0;;i++){ss>>r[i];if(ss.eof())break;}
n=i+1;
sort(r,r+n);
for(i=j=0;j<n;i++,j+=2)a[j]=r[i];
if(n%2==0){
for(j=n-1;j>=0;i++,j-=2)a[j]=r[i];
}else{
for(j=n-2;j>=0;i++,j-=2)a[j]=r[i];
}
for(t=a[0]+a[n-1],i=0;i<n-1;i++)t+=2*sqrt(a[i]*a[i+1]);
if(b>=t)cout<<"OK"<<endl;else cout<<"NA"<<endl;
}
return 0;
}