#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using uint = unsigned int;
using ldouble = long double;
int main() {
  double r;
  cin >> r;
  cout << r * 3.14159 << endl;
  return 0;
}
