#include <bits/stdc++.h>
const long double PI = 3.141592653589793238L;
using namespace std;
int main() {
  int radio;
  cin >> radio;
  cout << fixed << 2.0 * PI * pow(radio, 2) << endl;
  return 0;
}
