#include <bits/stdc++.h>
using namespace std;
const int MAX = 510000;
const int MOD = 1000000007;
int main() {
  double ans = 0.0;
  long long N;
  cin >> N;
  ans = N * 2 * 3.141592;
  cout << ans << endl;
}
