#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout << setprecision(20);
  double n;
  cin >> n;
  double c = 2 * acos(-1) * n;
  cout << c << '\n';
}
