#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int inf = 1000000000;
const double PI = 3.1415926535897932;
int main() {
  double R, ans;
  cin >> R;
  ans = 2 * R * PI;
  cout << ans << endl;
}
