'use strict';
const main = arg => {
  const input = arg.trim().split(' ');
  const R = parseInt(input[0], 10);
  const answer = R * 2 * 3.14159265359;
  console.log(answer);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));