#include <bits/stdc++.h>
using namespace std;
void solve() {
  double r;
  cin >> r;
  double pi = 3.14;
  cout << (2 * M_PI * r) << " ";
}
int main() {
  int t;
  t = 1;
  while (t--) {
    solve();
  }
}
