#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
using namespace std;
const double PI = 3.1415926535897932;
int main() {
  int r = 0;
  cin >> r;
  double res = PI * 2 * r;
  cout << res << endl;
  return 0;
}