#include <bits/stdc++.h>
using namespace std;
const long long INF = 2e18;
const long long MOD = 1e9 + 7;
long long R;
double PI = 3.14159265;
int main() {
  cin >> R;
  cout << 2 * R * PI << endl;
  return 0;
}
