#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int even = 0, odd = 0, dig, num;
cout << "Please enter a list of numbers (ex. - 12345)" << endl;
cin >> num;
while (num > 0)
{
dig = num % 10;
num = num / 10;
if(dig % 2 == 0)
even = even + dig;
else
odd = odd + dig;
}
cout << "The sum of the even integers is: " << even << endl;
cout << "The sum of the odd integers is: " << odd << endl;
return 0;
}