#include<iostream>
#include<numbers>
#include<cmath>
using namespace std;

int main(void) {
  int radius;
  double a = std::numbers::pi;
  std::cin>>radius;
  std::cout<<2*radius*a<std::endl;

  return 0;
}
