#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <cmath>

using namespace std;
using ll = long long;

int main(){
    double r;
    cin >> r;
    cout << 2*r*3.1415926535 << endl;
}