{"raw_statement":[{"iden":"problem statement","content":"You went shopping to buy cakes and donuts with $X$ yen (the currency of Japan).\nFirst, you bought one cake for $A$ yen at a cake shop. Then, you bought as many donuts as possible for $B$ yen each, at a donut shop.\nHow much do you have left after shopping?"},{"iden":"constraints","content":"*   $1 \\leq A, B \\leq 1$ $000$\n*   $A + B \\leq X \\leq 10$ $000$\n*   $X$, $A$ and $B$ are integers."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$X$\n$A$\n$B$"},{"iden":"sample input 1","content":"1234\n150\n100"},{"iden":"sample output 1","content":"84\n\nYou have $1234 - 150 = 1084$ yen left after buying a cake. With this amount, you can buy $10$ donuts, after which you have $84$ yen left."},{"iden":"sample input 2","content":"1000\n108\n108"},{"iden":"sample output 2","content":"28"},{"iden":"sample input 3","content":"579\n123\n456"},{"iden":"sample output 3","content":"0"},{"iden":"sample input 4","content":"7477\n549\n593"},{"iden":"sample output 4","content":"405"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}