Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions

Question

What is a portfolio weight? AppendixLO1

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago