{"raw_statement":[{"iden":"problem statement","content":"A Supermarket _Takahashi_ sells an $X$\\-gram beef pack for $Y$ yen.  \nAnother Supermarket _Snuke_ has decided to sell a beef pack at a lower price per gram.  \nIn Snuke, one beef pack weighs $Z$ grams. What is the greatest possible price (a non-negative integer) for Snuke's beef pack such that it is strictly cheaper than Takahashi's beef pack per gram?"},{"iden":"constraints","content":"*   All values in input are integers.\n*   $1 ≤ X, Y, Z ≤ 10^3$"},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$X$ $Y$ $Z$"},{"iden":"sample input 1","content":"100 200 100"},{"iden":"sample output 1","content":"199\n\nBoth stores sell $100$\\-gram packs, so Snuke can just make it one yen cheaper than that in Takahashi."},{"iden":"sample input 2","content":"103 971 593"},{"iden":"sample output 2","content":"5590\n\nTakahashi sells beef for $\\frac{971}{103} = 9.4271\\dots$ yen per gram. Snuke can sell $593$ grams of beef for $5590$ yen to make it $\\frac{5590}{593} = 9.4266\\dots$ yen per gram."},{"iden":"sample input 3","content":"1000 1 1"},{"iden":"sample output 3","content":"0\n\nThe price is allowed to be $0$ yen."}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}