#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  float r;
  cin >> r;
  r *= 3.1415926535897932;
  cout << setprecision(13) << r << endl;
}
