#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;

int main() {
    int r;
    cin >> r;
    double ans = 2 * r * M_PI;
    cout << fixed << setprecision(15) << ans << endl;
}