#include <bits/stdc++.h>
using namespace std;
int main() {
  double r, pai = 3.14159265358979323846;
  cin >> r;
  double c;
  c = 2 * r * pai;
  cout << fixed << setprecision(20) << c;
  return 0;
}
