#include <bits/stdc++.h>
using namespace std;
const int MAX = 1000000;
const int MOD = 1000000007;
int main() {
  int r;
  cin >> r;
  double ans = (double)2 * r * 3.141592;
  printf("%.8lf\n", ans);
  return 0;
}
