#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  float rad;
  cin >> rad;
  float twopi = atan(1) * 8;
  cout << twopi * rad << "\n";
  return 0;
}
