#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

#define PI 3.14159265358979323846 

int main(){

  int R;
  cin >> R;

  double cir = 2 * PI * R;
  cout << cir << "\n";
  

  return 0;
}
