#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define se second
#define fi first
#define pb push_back

int main()
{
  ll r ;
  cin >> r  ;
  r = double(r) ;
  cout << 2*(3.1415)*r << endl;


}
