#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
const ll MOD = 1000000007;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long double x;
  cin >> x;
  cout << 2 * M_PI * x << endl;
  return 0;
}
