#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
const long long INF = 1000000000000000000;
int main() {
  int R;
  cin >> R;
  double p = 3.1415926535;
  cout << 2.0 * R * p << endl;
}
