#include <bits/stdc++.h>
using namespace std;
const long double PI = 3.14159;
int main() {
  ios_base::sync_with_stdio(NULL);
  cin.tie();
  cout.tie();
  long double r;
  cin >> r;
  cout << (long double)2 * r * PI << '\n';
}
