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: Wrong Answer)

import java.util.Scanner;
        import java.util.*;

/**
 * Created by Admin on 2017-06-04.
 */
class Main {
    public static void main(String[] args) {
        Scanner dane = new Scanner(System.in);
        Integer r = Integer.parseInt(dane.next());
        if(r>9) {
            System.out.println("Nie mozna wpisac wiecej niż 9");
        }
        Integer g = Integer.parseInt(dane.next());
        if(g>9) {
            System.out.println("Nie mozna wpisac wiecej niż 9");
        }
        Integer b = Integer.parseInt(dane.next());
        if(b>9) {
            System.out.println("Nie mozna wpisac wiecej niż 9");
        }
        int a = (r * 100  + g * 10  + b);
        if (a % 4 == 0) {
            System.out.println(a + " " + " jest podzielna przez 4");
        }
        else {
            System.out.println(a +" " + "nie jest podzielna przez 4");
        }
    }
}