SP7240 PLYGRND - Playground

Description

George has K

Input Format

Each data set consists of a number 0 < K The input will be terminated by a zero on a line by itself.

Output Format

For each test case, there should be one word on a line by itself; “YES” if it is possible to make a simple connected figure out of the given arcs, and “NO” if it isn’t.