#include<bits/stdc++.h> using namespace std; int main(){ set<string> s; string line; while(getline(cin,line)){ cout<<(s.count(line)? "YES" : "NO")<<endl; s.insert(line); } return 0; }
#include using namespace std; int main(){ set s; string line; while(getline(cin,line)){ cout<<(s.count(line)? "YES" : "NO")<