407269: GYM102740 C Isabelle's Redecorating

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

C. Isabelle's Redecoratingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

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.

Input

There 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 $$$

Output

Output YES if L-shaped tiles will completely fill Isabelle's room and NO if they do not.

ExamplesInput
6 4
Output
YES
Input
9 6
Output
NO

加入题单

算法标签: