#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define en '\n'

int main() {
    ios::sync_with_stdio(0);
    long double r;
    cin >> r;
    cout << M_PI * 2 * r << endl;


    return 0;
}