#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
int main()
{
  double r; cin >> r;
  double ans = 2*r*M_PI;
  cout << fixed;
  cout << setprecision(20);
  cout << ans;
  return 0;
}