#include using namespace std; template vector Zalgo(const vector &s){ int l1 = 0,N = s.size(); vector ret(N); for(int i=1; i Zalgo(const string &s){ int l1 = 0,N = s.size(); vector ret(N); for(int i=1; i> N >> Q; string s; cin >> s; while(Q--){ int type; cin >> type; if(type == 1){ int pos; char c; cin >> pos >> c,pos--; s.at(pos) = c; } else{ string t; cin >> t; auto Z = Zalgo(t+'-'+s); bool yes = false; for(int i=1; i