#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const double pi = acos(-1);
int main() {
  int r;
  cin >> r;
  cout << setprecision(20) << 2 * pi * r << endl;
  return 0;
}
