#include <bits/stdc++.h>
using namespace std;
static const int INF = 2000000000;
int main() {
  int r;
  cin >> r;
  double ans = r * 2 * 3.1419265;
  cout << fixed << setprecision(5) << ans << endl;
}
