#include<iostream>
#include<iomanip>
using namespace std;

#define PI 3.14159265359

int main(){
    long long R;
    cin >> R;
    cout << fixed << setprecision(10) << 2*PI*R << endl;
    system("pause");
    return 0;