#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  double n;
  cin >> n;
  cout << fixed << n * (6.28318530717958623200) << endl;
  return 0;
}
