#include <bits/stdc++.h>
using namespace std;
const long long mod = 998244353;
const double pi = acos(-1);
int main() {
  int r;
  scanf("%d", &r);
  ;
  double cou = 2.0 * r * pi;
  printf("%0.30lf\n", cou);
}
