#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INF = +100100100;
const int MAX = 1000000;
int main() {
  int r;
  cin >> r;
  cout << r * 2 * M_PI << endl;
  return 0;
}
