#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  double k = 6.28318530717958623200;
  double n;
  cin >> n;
  cout << fixed << setprecision(5) << k * n << endl;
}
