#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
signed main() {
  long long n;
  cin >> n;
  double res = 2.0 * 3.1415926535897932384626 * n;
  printf("%.12lf ", res);
  ;
  return 0;
}
