- The output should contain a single line with a single word
- The word should be YES if it is possible to partition the input array into two partitions which satisfy the constraints mentioned above and NO otherwise