#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long INF = INT64_MAX;
long long i, j, k;
int main() {
  long long N;
  cin >> N;
  cout << 2 * N * M_PI << endl;
}
