#include <bits/stdc++.h>
using namespace std;
using int64 = long long;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  double R;
  cin >> R;
  cout << 2 * M_PI * R << "\n";
  return 0;
}
