Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/tenglashtirish

Make them equal

Easy 1000 ms 64 MB 17%
Share

Two integers $A$ and $B$ are given. If they are not equal, replace both with their sum $A + B$; if they are equal, replace both with zero. Find the new values of $A$ and $B$.

Unequal numbers become their sum, equal numbers become zero

Input

One line with two integers: $A$ and $B$.

Output

One line with two integers: the new $A$ and the new $B$.

Note

$-10^{6} \le A, B \le 10^{6}$

Examples

Input #1
2 3
Output #1
5 5
Input #2
4 4
Output #2
0 0

Sign in to submit a solution

Signing up is free and takes a minute.