#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int N;
  cin >> N;
  double pi = (double)22 / (double)7;
  setprecision(10);
  cout << double(2) * pi << endl;
  return 0;
}
