#include <iostream> using namespace std; inline void func(int& x,int&y,int*p) { x=y; *p=y; } int main() { int n, x, y; cin >> n; for (int i = 0; i < n; i++) { cin >> x >> y; int *p; func(x, y, p); cout << x << " " << *p << endl; } return 0; }