You are given a list of N users of a company and an empty database. Write a program to add names to the database based on the following conditions:
Input format
Output format
Print YES or NO for each string in a new line based on the result.
Constraints
1≤N≤105
1≤|S|≤32 where S denotes the length of the string
When the name "john" comes up the first time, we print "NO" because it does not exist in the database.
When it comes up the second time, we print "YES" because it exists in the database.