#include <iostream>
#include <cmath>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
using namespace std;
 
int main(){
    double R;

    cin >> R;

    cout << 2 * R * 3.141592 << endl; 
    return 0;
}