#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  float ans = 2 * n * 3.14159265;
  cout << std::fixed << std::setprecision(3) << ans << endl;
  return 0;
}
