#include #include #include #include #include #include using namespace std; using P = pair; int main() { int n,m; cin >> n >> m; deque a; for (int i=0; i> ai; a.push_back(ai); } string s; cin >> s; int t; for (int i=0; i