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