#include <bits/stdc++.h>
using namespace std;
const int N = 100010, mod = 2147483647;
const double PI = 3.1415926;
signed main() {
  int n;
  scanf("%d", &n);
  printf("%.2lf", 2 * (double)n * PI);
  return 0;
}
