文件目录

#include <bits/stdc++.h>
using namespace std;
int main()
{
    set<int> s;
    int n, m, a;
    cin >> n;
    while (n--)
    {
        cin >> a;
        s.insert(a);
    }
    cin >> m;
    for (auto i = s.begin(); i != s.end(); i++)
    {
        int b = m - *i;
        if (s.count(b))
        {
            cout << *i << " " << b;
            return 0;
        }
    }
    cout << "No";
    return 0;
}