#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30;
const long long int MOD = 1000000007;
int main() {
  string s, t, u;
  double a, b;
  cin >> a;
  cout << 2 * a * M_PI << endl;
}
