#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
using ll = long long;
int main() {
  const double PI = 3.14159265358979323846;
  double R, a;
  cin >> R;
  a = R * 2 * PI;
  cout << a << endl;
  return 0;
}
