#K57752. Taco Shipment Processing

    ID: 30490 Type: Default 1000ms 256MiB

Taco Shipment Processing

Taco Shipment Processing

You are given shipment data records for a taco-related supply chain. Each record contains an item name, its current stock amount, and the quantity received. For each record, compute the updated stock by summing the current stock and the received quantity and output the result in the format item: updated_stock.

The input consists of multiple datasets. Each dataset starts with an integer \(T\) (the number of shipments in that dataset) followed by \(T\) shipment records. The input is terminated by a line containing END.

Note: If any dataset is provided before END, all of its records should be processed in order.

inputFormat

The input is read from standard input (stdin) and consists of multiple lines. The format is as follows:

  1. A line containing a single integer \(T\) (\(0 \le T \le 1000\)), representing the number of shipment records in the current dataset.
  2. Followed by \(T\) lines, each containing an item record in the format: item initial_stock received_stock.
  3. The input terminates with a line containing the string END.

Each value is separated by a single space.

outputFormat

For each shipment record processed, output a line to standard output (stdout) in the format: item: updated_stock, where updated_stock is the sum of the initial stock and the received stock. The outputs must be printed in the same order as the records are processed.

## sample
2
apple 150 100
orange 200 150
END
apple: 250

orange: 350

</p>