#include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int _T; cin >> _T; for(int n, m, L, V; _T--; cout.put('\n')) { cin >> n >> m >> L >> V; cout << n << " 0"; } cout.flush(); return 0; }