#include <bits/stdc++.h>
using namespace std;
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  cout << fixed << setprecision(16);
  long long r;
  cin >> r;
  cout << 2 * M_PI * r << endl;
}
