#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll MOD = 1000000007;
int main() {
  double R;
  cin >> R;
  cout << fixed << setprecision(10);
  cout << R * 2 * 3.1415926535 << endl;
}
