#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int r;
  cin >> r;
  const long double pi = 3.141592653;
  cout << (long double)r * 2 * pi;
  return 0;
}
