{"raw_statement":[{"iden":"problem statement","content":"You are given positive integers $H$ and $W$. You aim to draw an $H$\\-row by $W$\\-column grid on the coordinate plane using several \"U-shapes.\"\nTo draw one U-shape, perform the following operation:\n\n*   Choose integers $1 \\le x \\le H$ and $1 \\le y \\le W$.\n*   From the following four line segments, select any three distinct ones:\n    *   The line segment connecting $(x-1, y-1)$ and $(x-1, y)$\n    *   The line segment connecting $(x-1, y-1)$ and $(x, y-1)$\n    *   The line segment connecting $(x, y)$ and $(x-1, y)$\n    *   The line segment connecting $(x, y)$ and $(x, y-1)$\n*   Draw the selected three line segments on the coordinate plane.\n\nHowever, the line segments you draw must not share any points (other than endpoints) with any line segments drawn previously.\nIs it possible to draw all the length-$1$ line segments connecting grid points with $0 \\le x \\le H$ and $0 \\le y \\le W$ by repeating this operation? If possible, provide an example."},{"iden":"constraints","content":"*   All input values are integers.\n*   $1 \\le H, W \\le 1000$"},{"iden":"partial score","content":"$10$ points will be awarded for passing the testset satisfying the additional constraint $H,W\\le 5$."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$H$ $W$"},{"iden":"sample input 1","content":"3 3"},{"iden":"sample output 1","content":"Yes\n<<^\nv.^\nv>>\n\nAs shown in the figure, you can draw a $3 \\times 3$ grid by drawing U-shapes. Note that no U-shape is drawn at the location corresponding to the center cell. (For clarity, the U-shapes are colored, but this is irrelevant to the problem.)\n![image](https://img.atcoder.jp/ttpc2024_1/5c8124eb7c9068ad7af0603c6077344b.svg)"},{"iden":"sample input 2","content":"4 4"},{"iden":"sample output 2","content":"No"},{"iden":"sample input 3","content":"4 5"},{"iden":"sample output 3","content":"No"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}