#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MOD = 1000000007;
const double PI=3.14159265358979323846;

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