#include <bits/stdc++.h>
using namespace std;
void bubblesort(int arr[], int n);
int main() {
  double pi = 3.14285714285714285714;
  int r;
  cin >> r;
  cout << fixed << setprecision(20) << 2 * pi * r;
}
