{"raw_statement":[{"iden":"problem statement","content":"We held two competitions: Coding Contest and Robot Maneuver.\nIn each competition, the contestants taking the $3$\\-rd, $2$\\-nd, and $1$\\-st places receive $100000$, $200000$, and $300000$ yen (the currency of Japan), respectively. Furthermore, a contestant taking the first place in both competitions receives an additional $400000$ yen.\nDISCO-Kun took the $X$\\-th place in Coding Contest and the $Y$\\-th place in Robot Maneuver. Find the total amount of money he earned."},{"iden":"constraints","content":"*   $1 \\leq X \\leq 205$\n*   $1 \\leq Y \\leq 205$\n*   $X$ and $Y$ are integers."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$X$ $Y$"},{"iden":"sample input 1","content":"1 1"},{"iden":"sample output 1","content":"1000000\n\nIn this case, he earned $300000$ yen in Coding Contest and another $300000$ yen in Robot Maneuver. Furthermore, as he won both competitions, he got an additional $400000$ yen. In total, he made $300000 + 300000 + 400000 = 1000000$ yen."},{"iden":"sample input 2","content":"3 101"},{"iden":"sample output 2","content":"100000\n\nIn this case, he earned $100000$ yen in Coding Contest."},{"iden":"sample input 3","content":"4 4"},{"iden":"sample output 3","content":"0\n\nIn this case, unfortunately, he was the highest-ranked contestant without prize money in both competitions."}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}