#include <bits/stdc++.h>
using namespace std;

int main() {
	int t;	cin >> t;
	unordered_map<string,int> freq;
	while(t--){
		string n;	cin >> n;
		if(freq.find(n) == freq.end()){
			cout << "NO\n";
			freq[n]++;
		}else	cout << "YES\n";
	}
	return 0;
}