#include <bits/stdc++.h>
using namespace std;
#define rep(i,n); for(int i = 0;i<n;++i)
using ll = long long;
using P = pair<int,int>;

int main(){
  double n;
  cin >> n;
  cout << n*2*3.1415 << endl;
  return 0;
}
