#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long r;
  cin >> r;
  double ans = 1.0 * r * 2 * 3.14159265358979323846;
  cout << fixed << setprecision(20) << ans << endl;
  return 0;
}
