#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;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWludCB0OwljaW4gPj4gdDsKCXVub3JkZXJlZF9tYXA8c3RyaW5nLGludD4gZnJlcTsKCXdoaWxlKHQtLSl7CgkJc3RyaW5nIG47CWNpbiA+PiBuOwoJCWlmKGZyZXEuZmluZChuKSA9PSBmcmVxLmVuZCgpKXsKCQkJY291dCA8PCAiTk9cbiI7CgkJCWZyZXFbbl0rKzsKCQl9ZWxzZQljb3V0IDw8ICJZRVNcbiI7Cgl9CglyZXR1cm4gMDsKfQ==