#include <bits/stdc++.h>

using namespace std;
using ll = long long;


int n;


void solve()
{
    ;
}

int main()
{
    cin >> n;
    
    solve();
    cout << (double)n * 3.1415926535897932 * 2.0 << endl;

    return EXIT_SUCCESS;
}