#include <bits/stdc++.h>
using namespace std;

const double PI = 3.14159;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    int r;
    cin >> r;
    cout << fixed << setprecision(10) << 2*PI*r << endl;
}
