CF100A.Carpeting the Room

传统题 时间 2000 ms 内存 256 MiB 5 尝试 1 已通过 1 标签

Carpeting the Room

Soroush's room is a square with side length n. Before this contest he bought k fine Persian carpets to carpet his room for celebrating the 100th contest on his favorite site. Each Persian carpet is a square of side length n1.

Soroush wants to cover all the area of his room. Carpets can be put over each other but it is not allowed to rotate the carpets. Can Soroush carpet his room completely?

Input

The input consists of three integer numbers n, k and n1 (10 ≤ n ≤ 12, 1 ≤ k ≤ 10, ).

Output

Write a single YES or NO. Write YES if and only if Sorush can carpet his room completely.

Samples

10 4 6
YES
10 2 5
NO

在线编程 IDE

建议全屏模式获得最佳体验