#include <bits/stdc++.h>
using namespace std;
const double pi = 3.1415926;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  cout << setprecision(10) << fixed << pi * 2 * n << endl;
  return 0;
}
