#include <bits/stdc++.h>
using namespace std;
const int maxn = 100005;
const int mod = 1000000007;
int main() {
  double r;
  cin >> r;
  double ret = 2 * acos(-1) * r;
  printf("%.10f\n", ret);
  return 0;
}
