#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  double r, a, pie = 3.141592654;
  cin >> r;
  a = 2 * pie * r;
  cout << std::setprecision(10) << a;
  return 0;
}
