#include using namespace std; int main(){ int Q; cin >> Q; for(int i=1;i<=Q;i++){ int t; cin >> t; if(t==1){ int A,B; cin >> A >> B; cout << A+B << "\n"; }else if(t==2){ cout << i << "\n"; } } return 0; }