#include <bits/stdc++.h>
using namespace std;
static const long long INF = (long long)1e15;
int main(void) {
  double r;
  cin >> r;
  cout << fixed << setprecision(10);
  cout << r * 2 * 3.14159265358979323846 << endl;
  return 0;
}
