#include <bits/stdc++.h>
using namespace std;
int main() {
  int r;
  float c;
  cin >> r;
  c = 2 * 3.1415926535897932384626433832795 * r;
  cout << fixed << setprecision(27) << (float)c;
  return 0;
}
