// 2020 04 25

#include <iostream>
#include <fstream>
#include <math.h>
#include <string>

using namespace std;

int main(){

  int r;
  const double PI = 3.1415926535;

  cin >> r;
  cout << 2 * PI * r;
}
