#include <bits/stdc++.h>
using namespace std;
int main() {
  double ans, pie = 3.14159265358993238462643383279;
  int n;
  cin >> n;
  ans = (n * 2) * pie;
  cout << setprecision(20) << ans;
  return 0;
}
