#include <bits/stdc++.h>
#include <algorithm>
#include <map>
using namespace std;

int main() {
  int r;
  cin >> r;
  double pi = 6.28318530717958623200/2; 

  cout << setprecision(10) << 2*pi*r << endl;
}
