#include <bits/stdc++.h>
using namespace std;
long long int MOD = 1e9 + 7;
const double PI = 3.14159265358979323846;
int main() {
  long long int r;
  cin >> r;
  cout << fixed << setprecision(13);
  cout << r * 2 * PI << endl;
}
