#include <bits/stdc++.h>

using namespace std;

int main(){
    int R;
    cin >> R;
    long double circumference = 2.0 * 3.14159265358979323846 * R;
    cout << circumference << endl;

    return 0;

}