#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int R;
  cin >> R;
  double cir = 2 * 3.14159265 * R;
  cout << cir << endl;
  return 0;
}
