#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 1LL << 60;
const ll mod = 1E9 + 7;
int main() {
  int r;
  cin >> r;
  cout << fixed << setprecision(3) << 2 * r * 3.141592;
}
