#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  float r, circum;
  cin >> r;
  circum = 2 * 3.141592653589793238462643383 * r;
  printf("%.7f\n", circum);
  return 0;
}
