#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long double ans = 2 * 3.1415926535897932384626 * (n * n);
  cout << fixed << setprecision(12);
  cout << ans << endl;
}
