#include <iostream>
#include <vector>
using namespace std;
vector<int> ans;
int main(){
	int a, b;
	while(cin >> a >> b){
		int res = a + b;
		ans.push_back(res);
		cout << ans.size() + 1 << endl;
		res = 0;
	}
	return 0;
}