#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  double pi = atan(1) * 4.0;
  double r;
  cin >> r;
  cout << 2 * pi * r;
}
