#include <iostream>
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--){
queue<int>q;
int n;
while(cin>>n){
q.push(n);
}
while(!q.empty){
cout<<q.front()<<" ";
q.pop();
}
}
return 0;
}
Log in or sign up for Devpost to join the conversation.