#include <iostream>
#include <vector>
#include <string>
#include <cmath>

using namespace std;

int main()
{
    int r;
    double pi_2;
    cin >> r;
    cout << r * 2 * M_PI << endl;
    return 0;
}