import java.util.Arrays;
import java.util.Scanner;
/**
* Java数组容量倍增算法 + 去重
*
* @author X
*
*/
public class Demo1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] a = new int[1];
int j = 0;
// Ctrl+z: sc.hasNext() 终止输入
while(sc.hasNext()){
if(j == a.length){
int[] a2 = new int[a.length*2];
// 将数组数据复制到另一个数据
System.arraycopy(a, 0, a2, 0, a.length);
a = a2;
}
a[j++] = sc.nextInt();
}
sc.close();
Arrays.sort(a,0,j);
int recent = a[0];
System.out.print(recent);
for(int i=1;i<j;i++){
if(a[i]==recent) continue;
System.out.print(" "+a[i]);
recent = a[i];
}
}
}