#include <bits/stdc++.h>
using namespace std;
int main() {
  int r;
  cin >> r;
  double ans = 2 * M_PI * r;
  std::cout << std::setprecision(20);
  printf("%td\n", std::cout.precision());
  std::cout << ans << endl;
}
