安徽科技工程大学程序设计在线考试系统Ver3.0

诚信考试,杜绝作弊!

问题 L: Basic Modifications - Unique

内存限制:512 MB 时间限制:1 S 标准输入输出
题目类型:传统 评测方式:文本比较

题目描述

Unique For a sequence of integers A={a0,a1,...,an−1} which is sorted by ascending order, eliminate all equivalent elements.

输入格式

A sequence is given in the following format.

n 

a0 a1,...,an−1

输出格式

Print the sequence after eliminating equivalent elements in a line. Separate adjacency elements by a space character.

输入样例 复制

4
1 2 2 4

输出样例 复制

1 2 4

数据范围与提示

1≤n≤100,000 

−1000,000,000≤ai≤1,000,000,000 

a0≤a1≤...≤an−1