#include <iostream>
#include <bits/stdc++.h>
using namespace std;
typedef long long llint;
const llint MOD = 1'000'000'007;

int main() {

    double R;
    cin >> R;
    cout << setprecision(20) << fixed << 2 * R * acos(-1) << endl;

}