Company: Flipkart_2nov
Difficulty: medium
Radha's Shop Sales Problem Description Radha runs a paints shop. She has three basic colours Red, Blue and Green in quantities of X, Y and Z units in stock. She can sell any of these three paints at a price of M Rs. per unit. Alternately, she can mix and boil the Basic colours in certain proportions to create three different Synthetic colours as follows: 1 unit of Red + 1 unit of Blue results in 1 unit of Purple 1 unit of Blue + 1 unit of Green results in 1 unit of Teal 1 unit of Red + 1 unit of Blue + 1 unit of Green results in 1 unit of Black The three Synthetic colours Purple, Teal and Black can be sold at prices P, Q and R Rs. per unit, respectively. Radha is wondering what is the maximum sales she can do, given certain quantities of basic colours in stock. Can you write a program to help her figure it out? Read the input from STDIN and print the output to STDOUT. Do not print arbitrary strings anywhere in the program, as these contribute to the standard output and test cases will