#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  string bun;
  char inp;
  cin >> n;
  getchar();
  for (int i = 0; i < n; i++) {
    bun = ("");
    while (1) {
      inp = getchar();
      if (inp == '\n') break;
      bun += inp;
    }
    cout << bun << endl;
  }
  return 0;
}
