#include <bits/stdc++.h>
using namespace std;
int main() {
  long double circum;
  long long r;
  cin >> r;
  circum = (long double)(2 * 22 * r) / (long double)7;
  cout << setprecision(10) << circum << endl;
}
