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 JavaScript (node.js v5.12) (judge verdict: Wrong Answer)

"use strict";
function Main(input) {
  input = input.split("\n");
  const person = input[1].split(" ");
  let rates = [];
  
  for(let i=0; i < 9; i++){
    rates[i] = 0;
  }
    
  for(let personCount=0; personCount < person.length; personCount++){
    let inputValue = parseInt(person[personCount], 10);
    if(1 <= inputValue && inputValue < 400){
      rates[0] = 1;
    }
    else if(400 <= inputValue && inputValue < 800){
      rates[1] = 1;
    }
	else if(800 <= inputValue && inputValue < 1200){
      rates[2] = 1;
	}
	else if(1200 <= inputValue && inputValue < 1600){
      rates[3] = 1;
	}
	else if(1600 <= inputValue && inputValue < 2000){
      rates[4] = 1;
    }
    else if(2000 <= inputValue && inputValue < 2400){
      rates[5] = 1;
    }
    else if(2400 <= inputValue && inputValue < 2800){
      rates[6] = 1;
	}
	else if(2800 <= inputValue && inputValue < 3200){
      rates[7] = 1;
    }
    else if(3200 <= inputValue && inputValue <= 4800){
      rates[8] += 1;
    }
  }
  
  let  color = 0;
  for(let colorCount=0; colorCount < 8; colorCount++){
    color += rates[colorCount];
  }
  
  let max = color + rates[8];
  let min = color;
  
  if(color === 0 && rates[8] > 0){
    min = 1;
  }
  console.log(min,max);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));