#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using VL = vector<ll>;
const long long INF = 999999999;
int main() {
  double b, ans;
  cin >> b;
  ans = 2 * b * M_PI;
  cout << printf("%.6f", ans) << endl;
}
