#include <bits/stdc++.h>
using ll = long long;
using namespace std;
const int INF = 1001001001;
int main(void) {
  int r;
  cin >> r;
  double ans = acos(-1) * r * 2;
  printf("%.10f\n", ans);
  return 0;
}
