#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll GetDigit(ll num) { return log10(num) + 1; }
int main() {
  int R;
  cin >> R;
  cout << 2 * R * 3.141592653589793238462643383279 << endl;
}
