#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
    int r;
    cin >> r;
    int p = 3.1415;
    cout << 2*p*r << endl;
    return 0;

}
