#include <iostream>
using namespace std;
 
int main(){
	int q1,b,c1,c2,q2,now;
 
	while(cin >> q1 && q1){
 
		cin >> b >> c1 >> c2 >> q2;
 
		/*ツ全ツづ地ツ鶏ツづ可シツ津ィ*/
		now = q2*c1;
 
		/*ツ必ツ要ツ湘ーツ個渉づーツ鳴楪つスツつキツづヲツつ、ツづ可地ツ鶏ツづ個青板づーツ陳イツ静淞つオツづつ「ツつュ*/
		while(now>b){
			now -= c1;
			q2--;
		}
 
		while(q2+(b-now)/c2 < q1){
			now -= c1;
			q2--;
		}
 
		if(q2>0){
			cout << q2 << " " << (b-now)/c2 << endl;
		}else{
			cout << "NA" << endl;
		}
	}
}