#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  cout << fixed << setprecision(12);
  const double pi = 3.14;
  cout << 2 * pi * n;
}
