#include <cstdio>

int main(void)
{
	long long q1, b, c1, c2, q2;
	
	while (1){
		scanf("%lld", &q1);
		if (q1 == 0) break;
		scanf("%lld %lld %lld %lld", &b, &c1, &c2, &q2);
		
		if (b < (c2 * (q1 - 1)) + c1){
			printf("NA\n");
			continue;
		}
		
		long long aizu = 0, nomal = 0;
		
		for (int i = 0; i < q2; i++){
			aizu++;
			b -= c1;
			if (b < 0){
				aizu--;
				b += c1;
				break;
			}
		}
		for (int i = 0; 0 <= b; i++){
			nomal++;
			b -= c2;
			if (b < 0){
				nomal--;
				b += c2;
				break;
			}
		}
		
		while ((aizu + nomal) < q1){
			aizu--;
			b += c1;
			while (c2 <= b){
				nomal++;
				b -= c2;
			}
		}
		
		printf("%lld %lld\n", aizu, nomal);
	}
	
	return (0);
}