Problem:
Score : 100 points

Problem Statement

AtCoDeer has three cards, one red, one green and one blue.

An integer between 1 and 9 (inclusive) is written on each card: r on the red card, g on the green card and b on the blue card.

We will arrange the cards in the order red, green and blue from left to right, and read them as a three-digit integer.

Is this integer a multiple of 4?

Constraints

1 ≤ r, g, b ≤ 9

Input

Input is given from Standard Input in the following format:

r g b

Output

If the three-digit integer is a multiple of 4, print YES (case-sensitive); otherwise, print NO.

Sample Input 1

4 3 2

Sample Output 1

YES

432 is a multiple of 4, and thus YES should be printed.

Sample Input 2

2 3 4

Sample Output 2

NO

234 is not a multiple of 4, and thus NO should be printed.

Solution in Java8 (OpenJDK 1.8.0) (judge verdict: Runtime Error)

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void solveColorfulLeaderboard() throws IOException {
		int n;
		int cntColor = 0;
		int cntOverRed = 0;
		boolean red = false;
		boolean orange = false;
		boolean yellow = false;
		boolean blue = false;
		boolean sky = false;
		boolean green = false;
		boolean brown = false;
		boolean grey = false;
		int ai;

		String line;
		String[] split;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		line = br.readLine();
		n = Integer.parseInt(line);
		line = br.readLine();
		split = line.split(" ");

		for (int i = 0; i < n; i++) {
			ai = Integer.parseInt(split[i]);
			if (1 <= ai && ai <= 399 && grey == false) {
				grey = true;
				cntColor++;
			} else if (400 <= ai && ai <= 799 && brown == false) {
				brown = true;
				cntColor++;
			} else if (800 <= ai && ai <= 1199 && green == false) {
				green = true;
				cntColor++;
			} else if (1200 <= ai && ai <= 1599 && sky == false) {
				sky = true;
				cntColor++;
			} else if (1600 <= ai && ai <= 1999 && blue == false) {
				blue = true;
				cntColor++;
			} else if (2000 <= ai && ai <= 2399 && yellow == false) {
				yellow = true;
				cntColor++;
			} else if (2400 <= ai && ai <= 2799 && orange == false) {
				orange = true;
				cntColor++;
			} else if (2800 <= ai && ai <= 3199 && red == false) {
				red = true;
				cntColor++;
			} else if (3200 <= ai) {
				cntOverRed++;
			}
		}
		System.out.println(cntColor + " " + (cntColor + cntOverRed));

		br.close();
	}

	public static void main(String[] args) {
		try {
			solveColorfulLeaderboard();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}