#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
typedef unsigned long long ull; 
 
class AOJ0186{
private:
  int q1,b,c1,c2,q2;
public:
 
  AOJ0186(int a,int b,int c,int d,int f):q1(a),b(b),c1(c),c2(d),q2(f){}
  ~AOJ0186(){}
 
 
  void run(){
    int aizu_meet,meet;
 
    bool ok = false;
    int preb = b;
     
    for(int i=q2;i>=1;i--){
      aizu_meet = meet = 0,b = preb;
      if(i*c1 > b)continue;
      aizu_meet = i;
      b -= (c1*i);
      meet = b/c2;
      //cout << "i =" << i << endl;
      //cout << aizu_meet << ' ' << meet << ", b = " << b << endl;
      if(aizu_meet+meet < q1)continue;
      if(aizu_meet == 0)continue;
      ok = true;
      cout << aizu_meet << ' ' << meet << endl;
      //cout << "i = " << i << endl;
 
      break;
    }
 if(!ok)cout << "NA" << endl;