#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e9;
const double PI = acos(-1);
const long long MOD = 998244353;
int main() {
  double r;
  cin >> r;
  printf("%.9lf\n", 2 * r * PI);
}
