Items

There are a number of items that are part of an adventure game. Print
the list of items in the appropriate format.

Input

The input starts with an integer N denoting the number of items. The
next N lines are on the format “<name>–<level>”, where <name> is the
name of the item and <level> is its required level.

Output

For each item in the order they appear in the input, print one line:
Item: XXX [YYY]
Here, XXX is the name of the item and YYY is its required level.

Problem information

Author: Anders Jonsson

Generation: 2026-01-25T15:57:27.162Z

© Jutge.org, 2006–2026.
https://jutge.org
