#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(){
  double p=3.14159;
  double n;
  cin >> n;
  cout << fixed << setprecision(5);
  cout << 2*p*n << endl;
}
