#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
vector<int> v;
vector<int> c;
int main() {
  double r;
  cin >> r;
  double ans = acos(-1) * 2 * r;
  printf("%.12lf", ans);
}
