const reader = require('readline').createInterface({ input: process.stdin, output: process.stdout }); let lines = []; reader.on('line', line => { lines.push(line); }); reader.on('close', () => { let n = parseInt(lines[0]); const ans = Array.from(Array(n)) .map((_, i) => (n - 1) - i) .join('') .repeat(n); console.log(parseInt(ans) === 0 ? 1 : ans); });