{"problem":{"name":"Placing Rectangles","description":{"content":"For positive integers $X$ and $Y$, a rectangle in a two-dimensional plane that satisfies the conditions below is said to be **good**. *   Every edge is parallel to the $x$\\- or $y$\\-axis. *   For eve","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc223_e"},"statements":[{"statement_type":"Markdown","content":"For positive integers $X$ and $Y$, a rectangle in a two-dimensional plane that satisfies the conditions below is said to be **good**.\n\n*   Every edge is parallel to the $x$\\- or $y$\\-axis.\n*   For every vertex, its $x$\\-coordinate is an integer between $0$ and $X$ (inclusive), and $y$\\-coordinate is an integer between $0$ and $Y$ (inclusive).\n\nDetermine whether it is possible to place the following three good rectangles without overlapping: a good rectangle of an area at least $A$, another of an area at least $B$, and another of an area at least $C$.\nHere, three rectangles are considered to be non-overlapping when the intersection of any two of them has an area of $0$.\n\n## Constraints\n\n*   $1 \\leq X, Y \\leq 10^9$\n*   $1 \\leq A, B, C \\leq 10^{18}$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$X$ $Y$ $A$ $B$ $C$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc223_e","tags":[],"sample_group":[["3 3 2 2 3","Yes\n\nThe figure below shows a possible placement, where the number in a rectangle represents its area.\nWe can see that $2 \\geq A, 3 \\geq B, 3 \\geq C$, satisfying the conditions.\n![image](https://img.atcoder.jp/ghi/abc223e_sample.png)"],["3 3 4 4 1","No\n\nThere is no possible placement under the conditions."],["1000000000 1000000000 1000000000000000000 1000000000000000000 1000000000000000000","No"]],"created_at":"2026-03-03 11:01:13"}}