#include using namespace std; int main(){ int t; cin >> t; while (t--)[&]{ long long N; cin >> N; cout << N << ' ' << 0 << endl; }(); }