#include <bits/stdc++.h>
using namespace std;
const int MAXN = 200;
int main() {
  long long r = 0;
  cin >> r;
  long double p = 3.14159;
  cout << setprecision(10) << r * 2 * p << endl;
  return 0;
}
