#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  double ans, r, p = 3.1416;
  cin >> r;
  ans = p * r * 2;
  cout << ans << endl;
}
