#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
using Graph = vector<vector<int>>;
int main(void) {
  double r;
  cin >> r;
  cout << setprecision(10);
  cout << 2 * r * M_PI << endl;
  return 0;
}
