#include<cstdio>
#include<cmath>
#include<algorithm>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<cstdlib>
#include<iomanip>
#include<queue>
#include<set>
#include <valarray>
#include<stack>
#include<sstream>
using namespace std;

double Solution2( int a, int b )  //pythagoras
{
    return 2 * sqrt( (double)( a * b ) );
}

void Solution()
{
    int length;
    
    while(cin>>length)
    {
        string s;
        
        getline(cin, s);
        
        vector<int> curcles;
        
        stringstream ss(s);
        
        while(!ss.eof())
        {
            int r;
            ss>>r;  //<< で書き込んだデータを >> で読み出す事も出来ますので、文字列バッファとして利用できます。
            curcles.push_back(r);
        }
        
        sort(curcles.begin(), curcles.end());
        
        double width = 0.f;
        
        int f = 0;
        int b = curcles.size() - 1;
        
        int minR = 0, maxR = 0;
        
        int edge1 = curcles[ f++ ];
        int edge2 = edge1;
        
        for( int i = 0; i < (int)curcles.size() - 1; ++i )
        {
            minR = curcles[f];
            maxR = curcles[b];
            
            if( maxR - edge1 > edge2 - minR )
            {
                width += Solution2( edge1, maxR );
                edge1 = maxR;
                --b;
            }
            else
            {
                width += Solution2( edge2, minR );
                edge2 = minR;
                ++f;
            }
            
            if( edge1 > edge2 )
            {
                swap(edge1, edge2);
            }
        }
        
        width += edge1 + edge2;
        
        cout<<(width <= length ? "OK" : "NA" ) << endl;
    }
    
}

int main()
{
    Solution();
    return 0;
}