#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int test = 1;
  while (test--) {
    int r;
    cin >> r;
    long double ans = (long double)(2.0 * r * 3.14159);
    cout << ans << endl;
  }
  return 0;
}
