P15085 [UOI 2025 II Stage] Family
Description
The friends of Vus the Cossack: Fedir and Ksenia --- twins in a large family.
One day, during a lunch break, Vus asked the twins to tell something about their family. Fedir said that he has $b_1$ brothers and $s_1$ sisters, while Ksenia has $b_2$ brothers and $s_2$ sisters.
Vus the Cossack remembered these four numbers, but he forgot who among the twins answered first.
That is, remembering that four numbers $b_1,s_1,b_2,s_2$ were mentioned, he is not sure whether $b_1,s_1$ is Fedir's answer or Ksenia's. However, he is sure that $b_1$ and $b_2$ denote brothers, while $s_1$ and $s_2$ denote sisters.
Vus became curious about how many brothers and sisters there are in their family in total, so with these four numbers, he turned to you for help.
Input Format
The first line contains four integers $b_1$, $s_1$, $b_2$, and $s_2$ ($0 \leq b_i,s_i\leq 20$; $|b_1 - b_2| = 1$; $|s_1 - s_2|=1$) --- the responses of the twins.
It is guaranteed that a solution exists.
Output Format
In a single line, output two integers --- the number of brothers and sisters in the family, respectively.