There are a number of albums that are part of a record label. Print the list of albums in the appropriate format.
The input starts with an integer
denoting the number of albums. The next
lines are on the format
“name–listed”,
where
name
is the name of the album and
listed
equals “Y” if the album is listed, and “N” otherwise.
For each album in the order they appear in the input, print one
line:
Album: XXX [YYY]
Here, XXX is the name of the album and YYY equals “listed” or
“unlisted”.
Input
5 Dark Side Of The Moon-Y Appetite For Destruction-N Hotel California-Y A Night at the Opera-Y Revolver-N
Output
Album: Dark Side Of The Moon [listed] Album: Appetite For Destruction [unlisted] Album: Hotel California [listed] Album: A Night at the Opera [listed] Album: Revolver [unlisted]