#include <iostream>
#include <math.h>

using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    double pi = M_PI;
    int r;
    cin >> r;

    cout << 2 * pi * r << endl;;
}