#include<iostream>
#include<string>
#include<vector>
#include<algorithm>

using namespace std;

int MAX_N = 100;

int main()
{
    long double pi = 3.14159265358979323;
    long double a,b,c;

    cin >> a;

    cout << 2*a*pi << endl;

    return 0;
}