#include <bits/stdc++.h>
using namespace std;
int gcd(int p, int q) {
  if (p % q == 0) {
    return q;
  }
  return gcd(q, p % q);
}
int main() {
  double r;
  cin >> r;
  cout << r * 3.141592 << endl;
}
