Pepcoding New System

easy
1. Pepcoding is developing a new system to make sure no two usernames are same. So, we have selected you as a developer to develop the system. There are some rules that are to be followed. 2. If you see the same username that already exists, just add a number at the end of that username (number starting from 1) and print it, else print "Verified". 3. main takes input a String array from the users. 4. This is a functional problem. 5. You have to complete the solve function. It takes as input a String array. It should print "Verified" if the username doesn't exists already, else should print the username with a number added to the end of the username. 6. Don't change the code of main.

Input Format

First line takes input N, the length of the string array. Second line takes input N space separated strings representing the elements of the array. Input is handled for you.

Output Format

N lines containing new username, if the username exists already, else Verified. Output is not handled for you.

Constraints

N/A

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
4
abc aab abc aba
Output
Verified 
Verified 
abc1 
Verified
Previous
Largest Element In A Stream
Next
Sum Equals To Sum

Related Questions