const reader = require("readline").createInterface({
  input: process.stdin,
  output: process.stdout
});
let lines = [];
reader.on("line", line => {
  lines.push(line);
});
reader.on("close", () => {
  const pai = 3.14
  let ans = pai * lines[0] * 2
  console.log(ans);
});