#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
using graph = vector<vector<int>>;
int main() {
  int N;
  cin >> N;
  double ans = 2 * (double)N * 3.14;
  cout << ans << endl;
}
