#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  double r, c;
  cin >> r;
  c = 2 * 3.14159 * r;
  cout << c << endl;
  return 0;
}
