#include <stdio.h>
#include <algorithm>
#define rep(i,n) for(int i=0; i<n; ++i)

int main(){
    double pi = 3.1415;
    double r;
    std::cin >> r;
    
    double ans;
    ans = 2 * pi * r;

    std::cout << ans << std::endl;
}