Nusrat is debugging low-level embedded firmware for a robotics club project, where every operation must be a bitwise trick, not a shortcut library call. First up: check if a sensor reading is even, using only bitwise AND. Read N and print "EVEN" or "ODD" using only the bitwise AND operator (N & 1), not the modulo operator.
Input
One integer N.
Output
"EVEN" or "ODD".
Constraints
0 ≤ N ≤ 10^9
Sample Input
10
Sample Output
EVEN
main.c
Loading editor…
Write C, then Run (custom I/O) or Submit (sample tests). ⌘/Ctrl+Enter submits.