#include <bits/stdc++.h>
using namespace std;
void solve(long long N) {
  cout << std::fixed << std::setprecision(10) << 2 * N * 3.141592653589 << endl;
}
int main() {
  long long N;
  scanf("%lld", &N);
  solve(N);
  return 0;
}
