#include<bits/stdc++.h>
using namespace std;
using ll =long long;

const double PI=3.1415926535897932;

int main(){
    int r;
    cin >> r;
    double r_=(double)r;
    cout << PI*r_*2 <<endl;
    return 0;
}