One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and the ripest one, in their opinion. After that the watermelon was weighed, and the scales showed w kilos. They rushed home, dying of thirst, and decided to divide the berry, however they faced a hard problem.
Pete and Billy are great fans of even numbers, that's why they want to divide the watermelon in such a way that each of the two parts weighs even number of kilos, at the same time it is not obligatory that the parts are equal. The boys are extremely tired and want to start their meal as soon as possible, that's why you should help them and find out, if they can divide the watermelon in the way they want. For sure, each of them should get a part of positive weight.
一個炎熱的夏日,皮特和他的朋友比利決定買一個西瓜。 在他們看來,他們選擇了最大和最成熟的那個。 之後,西瓜被稱重,秤上顯示 w 公斤。 他們急急忙忙趕回家,決定把漿果分開,但遇到了一個難題。
皮特和比利是偶數的忠實擁護者,這就是為什麼他們想以這樣的方式分割西瓜,使兩部分中的每一個重量為偶數公斤,同時部分相等並不是強制性的。 孩子們累極了,想盡快開始吃飯,所以你應該幫助他們,看看他們是否可以按照他們想要的方式分割西瓜。 當然,他們每個人都應該得到正數的重量。
The first (and the only) input line contains integer number w (1 ≤ w ≤ 100) — the weight of the watermelon bought by the boys.
第一行(也是唯一的)輸入行包含整數 w (1 ≤ w ≤ 100) — 男孩們買的西瓜的重量。
Print YES, if the boys can divide the watermelon into two parts, each of them weighing even number of kilos; and NO in the opposite case.
打印 YES,如果男孩們能把西瓜分成兩部分,每部分重偶數公斤; 在相反的情況下為 NO。
8
YES
ID | User | Problem | Subject | Hit | Post Date |
614 |
1365536-1@g....
(S3F40謝淵楨)
|
a772 | 176 | 2023-02-26 20:42 |