#C551. Check Parity of a Binary String
Check Parity of a Binary String
Check Parity of a Binary String
You are given a binary string that represents an integer. Your task is to determine whether the integer represented by this binary string is odd or even.
Since the parity (odd or even) of any integer in binary format can be determined by its last digit, you only need to check whether the last character of the string is '1' or '0'. If the last character is '1', the number is odd. Otherwise, it is even.
Note: The input will be a non-empty string composed solely of the characters '0' and '1'.
inputFormat
The input consists of a single binary string read from standard input.
Example:
1101
outputFormat
Output a single line to standard output containing either "Odd" or "Even" based on the parity of the binary number.
Example:
Odd## sample
1101
Odd