Олимпиадный тренинг

Задача 38648. Chips


A chip was placed in each extreme cell of the square board. Could it turn out that exactly k chips are placed? (For example, if the board is 22, then 4 chips are exposed, and if 66, then 20).

Input
One natural number k is entered, not exceeding 30000

Imprint
The program should print the word YES if there is such a size of the board that exactly (no more and no less) k chips will be put on, otherwise it should print the word NO.
Examples
# Input Output
1 20 YES
2 13 NO