#include using namespace std; using Int = long long; //INSERT ABOVE HERE signed main(){ Int n; cin>>n; vector > s(100); for(Int u=0;u>t; if(t==0){ Int x,y; cin>>x>>y; s[x].resize(y); for(Int i=0;i>s[x][i]; } if(t==1){ string b; cin>>b; Int flg=0; for(Int i=0;i<100;i++){ for(Int j=0;j<(Int)s[i].size();j++){ if(s[i][j]==b){ cout<>c; s[c].clear(); } } return 0; }