#include #include #include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int t; cin >> t; for (int i = 1; i <= t; i++) { string line; getline(cin >> ws, line); stringstream ss(line); int x = 0, y = 0, z = 0; ss >> x; if (x == 1) { ss >> y; ss >> z; cout << y+z << endl; } else { cout << i << endl; } } return 0; }