#inlcude <bits/stdc++.h>

using namespace std;
int main(){

  int r;
  cin >> r;
  float pi = 3.141592653589793;
  // to find circumstance of a circle use formula 2pir
  float res = (float)(2*pi*r);
  cout << res << "\n";