#include <bits/stdc++.h>
using namespace std;
long long mob = 1000000007;
using namespace std;
int main() {
  int r;
  cin >> r;
  cout << fixed << setprecision(20);
  cout << (double)2 * 3.14159265358979323846 * r;
  return 0;
}
