#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef long double ld;
#define F first
#define S second

int32_t main(){
	ld n;
	cin >> n;
	ld p = 3.14159265359; 
	cout << p * n * 2.0;
}

