#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  double a = n * 2.0 * 3.1415926535897932384626433832795028841971;
  cout << fixed << setprecision(20) << a;
  return 0;
}
