{"raw_statement":[{"iden":"problem statement","content":"We will buy a product for $N$ yen (the currency of Japan) at a shop.\nIf we use only $1000$\\-yen bills to pay the price, how much change will we receive?\nAssume we use the minimum number of bills required."},{"iden":"constraints","content":"*   $1 \\leq N \\leq 10000$\n*   $N$ is an integer."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$"},{"iden":"sample input 1","content":"1900"},{"iden":"sample output 1","content":"100\n\nWe will use two $1000$\\-yen bills to pay the price and receive $100$ yen in change."},{"iden":"sample input 2","content":"3000"},{"iden":"sample output 2","content":"0\n\nWe can pay the exact price."}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}