You are given a sequence of strings, each on a new line. Every odd line on the console is representing a resource (e.g. Gold, Silver, Copper, and so on) , and every even – quantity. Your task is to collect the resources and print them each on a new line.
Print the resources and their quantities in format:
{resource} –> {quantity}
The quantities inputs will be in the range [1 … 2 000 000 000]
Examples:
Input
|
Output
|
Gold
155
Silver
10
Copper
17
Gold
4
stop
|
Gold -> 159
Silver -> 10
Copper -> 17
|