#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 7;
map<int, int> Map;
int a[1000111];
int32_t main() {
  int n;
  cin >> n;
  while (cin >> n) {
    bool ok = false;
    Map.clear();
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
      if (Map[a[i]] == 1) {
        ok = true;
      }
      Map[a[i]]++;
    }
    if (ok)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
