#include <iostream>
#include <vector>
#include <queue>
#include <iostream>
#include <iomanip>
#define PI 3.14159265359

using namespace std;

int main() {

    int N; cin >> N;

    cout << N * 2 * PI << endl;
}