#include <bits/stdc++.h>
using namespace std;
int main() {
  long double r;
  cin >> r;
  long double pi = (long double)22 / 7;
  cout << fixed << setprecision(10) << (long double)2 * pi * r << "\n";
  return 0;
}
