{"problem":{"name":"Buying Sweets","description":{"content":"You went shopping to buy cakes and donuts with $X$ yen (the currency of Japan). First, you bought one cake for $A$ yen at a cake shop. Then, you bought as many donuts as possible for $B$ yen each, at ","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc087_a"},"statements":[{"statement_type":"Markdown","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?\n\n## Constraints\n\n*   $1 \\leq A, B \\leq 1$ $000$\n*   $A + B \\leq X \\leq 10$ $000$\n*   $X$, $A$ and $B$ are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$X$\n$A$\n$B$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc087_a","tags":[],"sample_group":[["1234\n150\n100","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."],["1000\n108\n108","28"],["579\n123\n456","0"],["7477\n549\n593","405"]],"created_at":"2026-03-03 11:01:13"}}