#include <bits/stdc++.h>
using namespace std;
void solve() {
  double r;
  cin >> r;
  cout << fixed << setprecision(10) << 3.14159265358979323 * 2 * r;
}
int main() {
  int t = 1;
  while (t--) solve();
  return 0;
}
