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

int main(){
  double r;
  cin>>r;
  double ans = 2*r*3.141592;
  cout << ans << endl;
}