#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>

using namespace std;
int main() {
  double n, pi;
  cin >> n;
  pi = acos(-1);
  cout << 2.0 * n * pi << endl;
}