using System;
namespace domo
{
class Program
{
static void Main(string[] args)
{
int n, Odd = 0, Even = 0;
do
{
n = int.Parse(Console.ReadLine());
if (n % 2 == 1)
Odd += n;
else
Even += n;
} while (n != 0);
Console.WriteLine("奇数之和={0}", Odd);
Console.WriteLine("偶数之和={0}", Even);
}
}
}