Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started