const reader = require("readline").createInterface({ input: process.stdin, output: process.stdout }); let lines = []; reader.on("line", line => { lines.push(line); }); reader.on("close", () => { const a1 = 1 const a2 = parseInt(lines[0]) - 1 console.log(`${a1} ${a2}`) });