#K77222. Participant Registration Number Generator

    ID: 34817 Type: Default 1000ms 256MiB

Participant Registration Number Generator

Participant Registration Number Generator

In this problem, you are given an integer nn and a list of names in the format "First Last". Your task is to generate unique registration numbers for each participant. Each registration number consists of the uppercase initials of the first name and last name, followed by a three-digit number that indicates the participant's index (starting from 1). For example, if the participant is "John Doe" and he is the first participant, his registration number will be JD001JD001. Make sure to format the number with leading zeros to ensure it is exactly three digits.

inputFormat

The input is read from standard input (stdin).

On the first line, an integer nn is given, representing the number of participants. Each of the following nn lines contains a participant's name in the format "First Last".

outputFormat

Output to standard output (stdout) a single line containing nn registration numbers separated by a space. Each registration number should be in the format FL###, where FF and LL are the uppercase initials of the first and last names respectively, and ### is the participant's index padded to three digits.## sample

1
John Doe
JD001