#include <bits/stdc++.h>   using namespace std;   int main() {     int n;     cin >> n;     int arr[n];     int i = 0;     int cnt[101] = {0};     for (int i = 0; i < n; i++) {       cin >> arr[i];       cnt[arr[i]]++;     }     int a = -1, b = -1;     for (int i = 0; i <= 100; i++) {       if (cnt[i] == n / 2) {         if (a == -1)           a = i;         else           b = i;       }     }     if (a != -1 && b != -1) {       cout <<  YES n ;       cout << a <<     << b;     } else       cout <<  NO n ;     return 0;   }   