// <24127121>
// <Nguyen Tien Thanh>
// <24C09>
//Bai 10

//Test case 1
//input: 60  80 
//Output:  20

//Test case 2
//Input: 70  100
//Output: 30

//Test case 3
//Input: 10  100
//Output: 90
#include <iostream>
using namespace std;
int main() {
	unsigned int previous, current;
	do {
		cout << "Nhap vao previous va current: ";
		cin >> previous >> current;
		if (current > previous) {
			unsigned int used = current - previous;
			cout << " " << used << endl;
		}
		else {
			cout << "Ban da nhap sai, vui long nhap lai!" << endl;
		}
	} while (current <= previous);
	return 0;
}