#include <bits/stdc++.h>
using namespace std;
int r;
const double pi = acos(-1);
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> r;
  cout << 2 * pi * r << endl;
  return 0;
}
