#include using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while(T--) { string R, S; int K; cin >> R >> S >> K; if(S == "Warong") { for(int k=0; k