function*stdinIter(){const t=require("fs").readFileSync("/dev/stdin","utf-8").trim().split(/\n|\s/);yield*t}function readMany(t,e){const i=e||this.iter||(this.iter=stdinIter()),n=[];for(let e=0;e<t;e+=1)n.push(i.next().value);return n};

(() => {
    const [ n ] = readMany(1).map(it => parseInt(it))
    const a = readMany(n).map(it => parseInt(it)).sort((a, b) => a- b)

    const dp = []
    for (let i = 0; i < a[n - 1]; i += 1) {
        dp[i] = true
    }

    for (const num of a) {
        for (let i = 1; i * num < a[n - 1]; i += 1) {
            dp[i] = false
        }
    }

    console.log(dp)
})()
