#include <bits/stdc++.h>
 
using namespace std;
 
#define pii pair<int,int>
#define ll long long
#define s second
#define f first
 
double r;
 
int main(){
  cin >> r;
  cout << setprecision(10) << r*2*acos(-1) << endl;
  return 0;
}