#include<iostream>
#include<bits/stdc++.h>
#include<algorithm>
#include<string>
using namespace std;
int main()
{
    int n;
    double rafi;
    cin>>n;
    rafi=2*3.1416*n;
    cout<<rafi<<endl;
    return 0;
}
