#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  float r;
  cin >> r;
  cout << 6.28 * r << "\n";
  return 0;
}
