const rl = require("readline").createInterface({ input: process.stdin });
var iter = rl[Symbol.asyncIterator]();
const readline = async () => (await iter.next()).value;

void async function () {
    // Write your code here
    const n = await readline()
    let num = []
    for(let i = 0; i < n; i++) {
        num.push(Number(await readline())) 
    }
    const set = new Set(num)  // 利用set去重
    const res = Array.from(set).sort((a, b) => a - b)
    for(let j = 0; j < res.length; j++) {
        console.log(res[j])
    }
}()