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

int main() {
    double r;
    cin >> r;
    double pi = 3.14;
    cout << (double)2 * r * pi << endl;
}