#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const double PI = 3.14159265358979323846;
int main() {
  int N;
  cin >> N;
  cout << setprecision(10) << 2 * N * PI << endl;
  return 0;
}
