Question: USE PYTHON One day Neveen and her friend Dima were shopping for some groceries. Walking by the chocolate stand they decided to buy one big

USE PYTHON
One day Neveen and her friend Dima were shopping for some groceries. Walking by the chocolate stand they decided to buy one big chocolate bar. Unfortunately, Neveen is following a diet and can not eat chocolate of odd weight. That's why Neveen and Dima want to divide the bar in such a way that each of the two parts weighs an even number of kilos, at the same time the parts do not need to be equal. The girls are extremely tired and want to eat the bar ASAP, that's why they ask you for help. Your task is to tell them if they can divide the chocolate bar in the way they want.
Input
The first (and the only) input line contains an integer number of the weight of the chocolate bar bought by the girls.
Output
Print YES, if the girls can divide the bar into two parts, each of them weighing an even number of kilos; and NO in the opposite case.
Examples
inputCopy
8
outputCopy
YES
Note
For example, the girls can divide the bar into two parts of 2 and 6 kilos respectively (another variant two parts of 4 and 4 kilos).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!