//#define _GLIBCXX_DEBUG #include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() #define vin(vec, n) rep (i, n) cin >> vec[i]; using ll = long long; using vi = vector; using vvi = vector>; using vc = vector; using vvc = vector>; using pii = pair; const ll MOD = 998244353, MOD2 = 1000000007; /************************************************************************************/ int main() { int Q; cin >> Q; rep (i, Q) { int id; cin >> id; if (id == 1) { int a, b; cin >> a >> b; cout << a+b << '\n'; } else { cout << i+1 << '\n'; } } }