#include"bits/stdc++.h"
#include<math.h>
using namespace std;

int main(){
    int64_t i,j,k,l;//preparation for
    double r;
    double p;

    p=3.1415926;

    cin>>r;
    r*=2*p;
    cout<<r;

    return 0;
}