"use strict";
function main(input) {
    var line = input.split("\n");
    const pi = 3.14159265359;
    let R = parseInt(line[0]);
    var circumference = 2*pi*R;
    console.log(circumference.toPrecision(20));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));