#include<iostream>
#include <bits/stdc++.h>
#include<string>
#include<algorithm>
#include<utility>
using namespace std;


int main(){
    double R;
    double PI=3.1415926535;
    cin >> R;
    cout << 2*R*PI << endl;
    return 0;


}