#include <bits/stdc++.h>
using namespace std;
const unsigned long long int pi = 6.28318530717958623200;
int main() {
  unsigned long long int n;
  cin >> n;
  n = pi * n;
  cout << n << endl;
  return 0;
}
