#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
double r, ans;
double pi = 3.1415926535;
int main() {
  cin >> r;
  ans = pi * r * 2;
  cout << fixed << ans << endl;
  return 0;
}
