#include <bits/stdc++.h>
using namespace std;
bool comparator(pair<long long, long long> a, pair<long long, long long> b) {
  return a.first / a.second < b.first / b.second;
}
int main() {
  double n;
  cin >> n;
  cout << 2 * M_PI * n << endl;
}
