#include <bits/stdc++.h>
using namespace std;
void solve() {
  int r;
  cin >> r;
  cout << (2 * 3.1415926535 * r) << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  solve();
}
