http://codeforces.com/problemset/problem/4/A

您所在的位置:网站首页 caxa软件怎么样 http://codeforces.com/problemset/problem/4/A

http://codeforces.com/problemset/problem/4/A

2023-03-13 21:56| 来源: 网络整理| 查看: 265

A. Watermelontime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard output

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 showedw 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.

Input

The first (and the only) input line contains integer number w (1 ≤ w ≤ 100) — the weight of the watermelon bought by the boys.

Output

Print YES, if the boys can divide the watermelon into two parts, each of them weighing even number of kilos; andNO in the opposite case.

Sample test(s)Input8OutputYES

#include#includeusing namespace std;int main(){ int n; scanf("%d",&n); if(n!=2&&n%2==0) printf("YES\n"); else printf("NO\n"); return 0;}

http://codeforces.com/problemset/problem/4/A http://codeforces.com/problemset/problem/1/A http://codeforces.com/problemset/problem/228/A http://codeforces.com/problemset/problem/236/A http://codeforces.com/problemset/problem/4/B http://codeforces.com/problemset/problem/4/C http://codeforces.com/problemset/problem/266/B http://codeforces.com/problemset/problem/712/C http://codeforces.com/problemset/problem/237/C Primes on Interval Т-prime http://codeforces.com/problemset/problem/230/B dfs搜索练习题 http://codeforces.com/problemset/problem/589/J http://codeforces.com/problemset/problem/714/C Sonya and Queries http://codeforces.com/problemset/problem/4/D Mysterious Present (簡單LIS) http://codeforces.com/problemset/problem/716/C Plus and Square Root http://212.193.33.23/problemset/problem/154/A http://codeforces.com/contest/6/problem/A http://codeforces.com/contest/7/problem/A http://codeforces.com/contest/1/problem/A 新的开始! SQL注入专题--整理帖 让MATLAB响起来~ javascript基础属性 SQL Server注入大全及防御 http://codeforces.com/problemset/problem/4/A 获取顶级域名修正版,parseHost() (更新日期2013-1-3) 复用类二种到达这一目标的方法 Android Intent APPWeb+PHP5+SQLite3在S3C6410上移植之四 http://codeforces.com/problemset/problem/4/B UML和RUP之间的那点事 (acm协会课程笔记)归并算法 深入理解proc文件系统


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3