#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  float r;
  cin >> r;
  float len;
  const double PI = acos(-1);
  len = 2 * r * PI;
  cout << len << endl;
  return 0;
}
