#include <bits/stdc++.h>
#define int long long
using namespace std;
const int MOD = 1000000007;

signed main() {
    
    cout << fixed << setprecision(6);
  double R;
  cin >> R;
  
  double pi = 3.1415926535;
  cout << 2.0*R*pi << endl;
}
