#include <iostream>
using namespace std;
int a, b, c, si, sp;
int main()
{
cin >> a >> b >> c;
if(a % 2 == 0) sp = sp + a;
else si = si + a;
if(b % 2 == 0) sp = sp + b;
else si = si + b;
if(c % 2 == 0) sp = sp + c;
else si = si + c;
cout << sp << " " << si;
return 0;
}