#include <bits/stdc++.h>
using namespace std;
map<int, set<int> > m;
int main() {
  double stime = clock();
  double r;
  cin >> r;
  cout << fixed << setprecision(12) << (2 * 3.14159265 * r) << '\n';
  double etime = clock();
}
