#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
using namespace std;

int main(){
    int r ;
    cin >> r ;
    cout << r*2.0*M_PI << endl ;
}