#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double PI = 3.14159265358979323846;
int main() {
  double R;
  cin >> R;
  double ans = 2 * PI * R;
  printf("%.12f\n", ans);
}
