#include <bits/stdc++.h>
using namespace std;

const double PI = 3.14

int32_t main(){
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int r;
  cin >> r;
  cout << 2*r*PI << "\n";
}