include <iostream>
#include "bits/stdc++.h"
using namespace std;
using graph = vector<vector<int>>;
typedef long long ll;

int main() {
	ll n;
	cin >> n;
	cout << n * 3.14159265 * 2 << endl;
	return 0;
}