Олимпиадный тренинг

Задача 38803. Six digit number - 2


Задача

Темы: Целые числа
The program receives a six-digit number as input. Output  display two numbers separated by a space: the largest sum among the sums of even and odd digits, and print the number of even digits with odd neighbors.
 
Examples
# Input Output
1 127357 23 1