#include #include #include typedef long long ll; using namespace std; template void print(H head) { cout << head << endl; } template void print(H&& head, T&&... tail){ std::cout << head << " ", print(std::forward(tail)...); } int main() { std::string s1, s2, s3; ll T, N; cin >> T; while (T--) { cin >> s1 >> s2 >> N >> s3; print(s1, s2, N+1, s3); } return 0; }