#include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265358979323846;
int main(void) {
  long long r;
  cin >> r;
  printf("%.10lf", (double)2.0 * PI * r);
  cout << endl;
  return 0;
}
