#include<iostream>
#include<vector>
using namespace std;
typedef long long ll;
#define rep(i, n) for(int i = 0; i < (n); i++)
int main() {
    ll a;
    cin >> a;
    double d = 3.1415926535897;
    cout << 2 * a * d << endl;
}
