#include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265358979323846;
int main() {
  int r;
  cin >> r;
  double ans = (double)2.0 * (double)r * PI;
  cout << ans << endl;
  return 0;
}
