#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  double pi = 3.14159265359;
  double r;
  cin >> r;
  cout << 2 * pi * r << "\n";
  return 0;
}
