#include<bits/stdc++.h>
#include<set>
using namespace std;
int main(){
	set<int>s;
	// write your code here......
	int in(0);
	while(cin>>in)
	{
		s.insert(in);
	}

	for (auto it = s.begin(); it != s.end(); it++)
	{
		cout << *it << " ";
	}
	return 0;
}