The government of “Moderdesh” is planning to enter the digital age and so people of different profession and business are proposing different ways to enter that age successfully. The hardware vendors are saying that we need to provide a laptop for each student, the mobile companies are saying that every children needs to have a mobile phone in his small hand and talk all night long, the multimedia experts are crying for Multimedia University and so on. But very few are crying for the overall improvement of Computer Science education. We do not understand that by being only the consumer of modern digital technologies we cannot enter the real digital age. Now as a protest, some local computer geeks are planning to digitize the local vegetable and grocery markets in a strange way. The local markets generally use weighing balances as shown in the figure-1 and they use conventional weight sets as shown in figure 2. The computer geeks want to introduce a new type of weight set, where each piece will have the shape of an upper case English alphabet, and strangely Figure 1: The weighing balance weighing a Figure 2: the weights of these pieces will papaya using letter shaped weights. Conventional weight set be related with their ASCII valuess. For example the ASCII value of ‘A’ is 65, which is 10000012 in binary. For each ‘1’ in binary representation a weight of 500 gms will be added and for each ‘0’ in binary representation a weight of 250 gms will be added. So a piece with shape ‘A’ actually weighs (250 ∗ 5 + 2 ∗ 500) gm = 2250 grams. Note that leading zeroes in binary representation are not considered. The geeks believe if others are correct about their ways to enter digital age, they are also correct about digitizing the local markets by introducing new weight sets related to ASCII characters. Now in this problem you will be given (i) the picture of a weighing scale and the weight pieces that it contains in left pan and in the right pan (ii) You will also be informed which pan is heavier and which pan is lighter (Not necessarily correct). You will have to detect whether the given information is correct or not. If the given information is not correct you will have to rectify the picture and show it in the output.
.../...||........ ../....||........ ./.....||.../... /A.....||../.... ______/||./.....
Sample Output
Case 1:
The figure is correct.
Case 2:
........||.../...
........||../....
.../...||./.....
../....||/OYA...
./.....||_/
/WCGQG.||........
_/||........
Case 3:
........||........
.../...||.../...
../....||../....
./.....||./.....
/A.....||/A.....
_/||_/
........||........
Case 4:
The figure is correct.