#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  float n;
  cin >> n;
  float ans = n * 3.14 * 2;
  cout << ans << endl;
  return 0;
}
