#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int MOD = 1e9 + 7;
const long long LINF = 1e18;
int main() {
  int r;
  cin >> r;
  cout << (2 * r * M_PI) << '\n';
  return 0;
}
