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 Ruby (2.3.3) (judge verdict: Runtime Error)

def get_color(score)
  return :gray    if score <= 399
  return :brown   if score <= 799
  return :green   if score <= 1199
  return :water_blue if score <= 1599
  return :blue    if score <= 1999
  return :yellow  if score <= 2399
  return :orange  if score <= 2799
  return :red     if score <= 3199
  return :any
end

_       = STDIN.gets.chomp
numbers = STDIN.gets.split(/\s+/).map{|it| it.to_i }
hash    = numbers.collect{|it| get_color(it) }.reduce({}){|hash,it| hash[it] ||= 0; hash[it] += 1; hash }
color_size = hash.keys.size

if hash.key?(:any)
  min = color_size >= 2 ? color_size - 1 : 1
  max = hash[:any] >= 8 ? 8 : color_size - 1 + hash[:any]
else
  min = color_size
  max = color_size
end

puts [min, max].join(" ")