#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin >> t; while (t--) { string a, b, c; int m; cin >> a >> b >> m >> c; cout << a << ' ' << b << ' ' << m + 1 << ' ' << c << endl; } return 0; }