Max has opened a pizza store last month but he is not good at managing inventory. He needs your help to build an inventory management system. You are given multiple lines of text that contain information about the products. Each line contains three parts separated by a whitespace: the product title, the indicator ('I' for restock or 'O' for outgoing), and the quantity.
Your task is to calculate the remaining quantity of each product in the storehouse and output the final inventory. If the remaining quantity of a product is zero, do not include it in the output. If two product titles are the same in lowercase, they should be considered the same product.
The input consists of multiple lines of text. Each line contains a product title, an indicator, and a quantity separated by a whitespace.
The output should contain the remaining quantity of each product in the warehouse. If the remaining quantity of a product is zero, do not include it in the output. The product title should be displayed in lowercase. The output should be in the order that the product title first appeared in the input.