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