AtCoDeer has three cards, one red, one green and one blue. An integer between 1 and 9…
- User
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, printNO.Examples
Input
4 3 2
Output
YES
Input
2 3 4
Output
NO
Assistant
# Read the input values r, g, b = map(int, input().split()) # Calculate the last two digits as a number last_two = g * 10 + b # Check divisibility by 4 print("YES" if last_two % 4 == 0 else "NO")
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.