Blame view

P61634_en/S001-AC.cc 319 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
	int y;

	cin >> y;

	if(!(y - (y/100)*100))
	{
		if(!((y/100)%4))
		{
			cout << "YES" << endl;
			return 0;
		}
		cout << "NO" << endl;
		return 0;
	}
	if(!(y%4))
	{
		cout << "YES" << endl;
		return 0;
	}
	cout << "NO" << endl;
	return 0;
}