#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  double c;
  cin >> n;
  c = n * 3.14159265358979323846264338327950288419716939937510;
  cout << setiosflags(ios::fixed) << setprecision(20) << c;
  return 0;
}
