#include <iostream>
#include <vector>
#include <string>
#include "./libb/lib.hpp"

using namespace std;

int main()
{
    uint32_t rr;
    double pi = 3.141592;
    cin >> rr;

    cout << 2 * rr * pi << endl;

    return 0;
}