// #define _GLIBCXX_DEBUG #include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main() { // Input And Output int T; cin >> T; rep(i, T) { string S1, S2, S3; int x; cin >> S1 >> S2 >> x >> S3; cout << S1 << ' ' << S2 << ' ' << x + 1 << ' ' << S3 << endl; } }