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

    for (set<int>::iterator it = s.begin(); it != s.end(); it++) {
        cout << *it << " ";
    }

    return 0;
}