{"problem":{"name":"Curtain","description":{"content":"The window of Takahashi's room has a width of $A$. There are two curtains hung over the window, each of which has a horizontal length of $B$. (Vertically, the curtains are long enough to cover the who","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc143_a"},"statements":[{"statement_type":"Markdown","content":"The window of Takahashi's room has a width of $A$. There are two curtains hung over the window, each of which has a horizontal length of $B$. (Vertically, the curtains are long enough to cover the whole window.)\nWe will close the window so as to minimize the total horizontal length of the uncovered part of the window. Find the total horizontal length of the uncovered parts of the window then.\n\n## Constraints\n\n*   $1 \\leq A \\leq 100$\n*   $1 \\leq B \\leq 100$\n*   $A$ and $B$ are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$A$ $B$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc143_a","tags":[],"sample_group":[["12 4","4\n\nWe have a window with a horizontal length of $12$, and two curtains, each of length $4$, that cover both ends of the window, for example. The uncovered part has a horizontal length of $4$."],["20 15","0\n\nIf the window is completely covered, print $0$."],["20 30","0\n\nEach curtain may be longer than the window."]],"created_at":"2026-03-03 11:01:14"}}