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

int main(){
    float pai = 3.14159265358979;
    int R;
    cin >> R;

    cout << 2*pai*R <<endl;


}