#include <iostream>
#include <cstdio>

using namespace std;

typedef long long ll;

ll n;

int main()
{
    scanf("%lld", &n);
    printf("%.9Lf", 2 * (long double)n * 3.141592653589793238);
    return 0;
}
