#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;

int main() {
  int R;
  cin >> R;
  double pi = 3.1415926;
  cout << setprecision(10) << 2 * pi * R << endl;
  return 0;
}