#include #include using namespace std; int main(){ long long n; cin >> n; long long p = 1ll< s; while(p--){ int x; cin >> x; s.insert(x); } multiset ans; while(n--){ auto v = *next(s.begin()); ans.insert(v); for(auto x : s){ auto it = s.find(x+v); if(it == s.end()){ cout << "impossible" << endl; return 0; } s.erase(x+v); } } for(auto x : ans) cout << x << endl; }