407275: GYM102741 C Isabelle's Redecorating
Description
After a long day at the arena fighting (and defeating!) Bowser, Isabelle comes home to get some rest. She looks around her house and notices her plain wooden floors and decides that they need some pizzazz. Isabelle decided she wanted to swap the wooden floors for fun colored tiles. After much internal debate, she decided on L-shaped tiles (3 across, 1 down) because they reminded her of both the Tetris piece and the move a knight makes in chess. Given the dimensions of Isabelle's rectangular room, determine whether or not these tiles will fully cover her floor.
InputThere will be one line of input that contains 2 space-separated integers $$$N$$$ and $$$M$$$ which represent the length and width of Isabelle's room.
$$$ 1 \leq N, M \leq 1000 $$$
OutputOutput YES if L-shaped tiles will completely fill Isabelle's room and NO if they do not.
ExamplesInput6 4Output
YESInput
9 6Output
NO