#ifndef ONLINE_JUDGE #define _GLIBCXX_DEBUG // []で配列外参照をするとエラーにしてくれる。上下のやつがないとTLEになるので注意 #endif #include using namespace std; #include using namespace atcoder; // #include // using namespace boost::multiprecision; using ll = long long; using Graph = vector>; ll INF = 2e18 + 1; int op(int a, int b) { return max(a, b); } int e() { return (int)(-1e9); } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); segtree seg(200010); int cur=0; int q; cin>>q; for(;q--;){ int a,b; cin>>a>>b; if(a==1){seg.set(cur,b);cur++;} else{cout<