#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int debug = 0;
int main() {
  int r;
  cin >> r;
  printf("%.20f\n", 2 * r * 3.14159265359);
  return 0;
}
