{"problem":{"name":"Greedy Takahashi","description":{"content":"Takahashi has $A$ cookies, and Aoki has $B$ cookies. Takahashi will do the following action $K$ times: *   If Takahashi has one or more cookies, eat one of his cookies. *   Otherwise, if Aoki has one","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc149_b"},"statements":[{"statement_type":"Markdown","content":"Takahashi has $A$ cookies, and Aoki has $B$ cookies. Takahashi will do the following action $K$ times:\n\n*   If Takahashi has one or more cookies, eat one of his cookies.\n*   Otherwise, if Aoki has one or more cookies, eat one of Aoki's cookies.\n*   If they both have no cookies, do nothing.\n\nIn the end, how many cookies will Takahashi and Aoki have, respectively?\n\n## Constraints\n\n*   $0 \\leq A \\leq 10^{12}$\n*   $0 \\leq B \\leq 10^{12}$\n*   $0 \\leq K \\leq 10^{12}$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$A$ $B$ $K$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc149_b","tags":[],"sample_group":[["2 3 3","0 2\n\nTakahashi will do the following:\n\n*   He has two cookies, so he eats one of them.\n*   Now he has one cookie left, and he eats it.\n*   Now he has no cookies left, but Aoki has three, so Takahashi eats one of them.\n\nThus, in the end, Takahashi will have $0$ cookies, and Aoki will have $2$."],["500000000000 500000000000 1000000000000","0 0\n\nWatch out for overflows."]],"created_at":"2026-03-03 11:01:14"}}