Submit | All submissions | Best solutions | Back to list |
EIUPH007 - The largest even number |
Given a positive integer N. Find the largest even digits in N.
Input
A single line consists of positive integers N (N <= 10 ^ 18).
Output
A single integer is the result. If there are no even digits, output -1.
Example
Input: 68 Output: 8