#include <iostream>
#include <vector>
#include <algorithm>
#include <math.h>
#include <string>
using namespace std;

int main(){
  // 入力
  double R;
  cin >> R;
  double pi = 3.14159;
  
  double result = 2*pi*R;

  cout << result << endl;
  return 0;
}