const input = require('fs').readFileSync('/dev/stdin', 'utf8'); const D = Number(input); console.log([...Array(D).keys()].join``[D]);