Tracks X49397


Statement
 

pdf   zip

html

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

Input

The input starts with an integer N denoting the number of tracks. The next N lines are on the format “<name>–<duration>”, where <name> is the name of the track and <duration> is an integer describing the duration in seconds.

Output

For each track in the order they appear in the input, print one line:
Track: XXX [YYYs]
Here, XXX is the name of the track and YYY is its duration.

Public test cases
  • Input

    5
    Money-390
    Welcome to the Jungle-271
    Hotel California-390
    Bohemian Rhapsody-357
    Yellow Submarine-159
    

    Output

    Track: Money [390s]
    Track: Welcome to the Jungle [271s]
    Track: Hotel California [390s]
    Track: Bohemian Rhapsody [357s]
    Track: Yellow Submarine [159s]
    
  • Information
    Author
    Anders Jonsson
    Language
    English
    Official solutions
    C++
    User solutions
    C C++