#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll MOD = 1000000007;
int main() {
  int R;
  cin >> R;
  const double PI = 3.14159265358979323846;
  cout << fixed << setprecision(30);
  cout << 2 * R * PI << endl;
}
