#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vpii = vector<pair<int, int>>;
using vpll = vector<pair<ll, ll>>;
int main(void) {
  int R;
  cin >> R;
  printf("%.10f\n", 2 * R * M_PI);
}
