GeeksforGeeks developed its new system to make sure no two usernames are same. So, they selected you as a developer to develop the system. They have set some rules to do the same.
Rules are pretty simple: If you see the same username that already exists, just add a number at the end of that username (number starting from 1), else you will toast "Verified".
First line of the input contains an integer T denoting the number of test cases. Then T test cases follow. First line of every test case consists of an integer N, denoting number of usernames. Second line of every test case consists of N spaced separated Strings, denoting usernames(only lowercase letters).
Corresponding to each test case, print the required output in a new line.
abc aab abc aba
abc abc aab aab abc
Verified Verified abc1 Verified
Verified abc1 Verified aab1 abc2
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.