
#include <iostream>
#include <algorithm>
#include <deque>
#include <iterator>
#include <list>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
#include <string>
#include <iostream>
using namespace std;

int main() {
    int a;
    const double pi = acos(-1);
    double b;
    cin >> a;
    b = a * 2 * pi;
    cout << b << endl;
}

  