#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int r;
  cin >> r;
  long double a = (2.0) * (3.1415926535) * (r);
  cout.setf(ios::fixed, ios::floatfield);
  cout.precision(10);
  cout << a;
  return 0;
}
