#include <bits/stdc++.h>
using namespace std;
const double pi = 6.28318530717958623200 / 2;
signed main() {
  long long r;
  cin >> r;
  cout.setf(ios::fixed);
  cout << setprecision(10) << 2 * pi * r << endl;
}
