Albums X34329


Statement
 

pdf   zip

html

There are a number of albums that are part of a record label. Print the list of albums in the appropriate format.

Input

The input starts with an integer N denoting the number of albums. The next N 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.
Output

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”.

Public test cases
  • 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]
    
  • Information
    Author
    Anders Jonsson
    Language
    English
    Official solutions
    C++
    User solutions
    C C++