#include <bits/stdc++.h>
using namespace std;
void solving() {
  int r;
  double a = 2 * 22 * r;
  a = a / 7;
  cout << a << "\n";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) solving();
  return 0;
}
