#include <bits/stdc++.h>
using namespace std;
const long long INF = long long(1e18) + 1;
const double PI = 3.14159265358979323846;
int main() {
  double R;
  cin >> R;
  printf("%12.5f", 2 * PI * R);
}
