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

~/algor $ cat problems/tartibli-uchlik

Ordered triple

Easy 1000 ms 64 MB 19%
Share

Three integers $A$, $B$ and $C$ are given. If they are in ascending order ($A < B < C$), multiply each by $2$; otherwise replace each with its opposite. Find the new values of $A$, $B$ and $C$.

An ordered triple is doubled, otherwise the signs are flipped

Input

One line with three integers: $A$, $B$ and $C$.

Output

One line with three integers: the new $A$, $B$ and $C$.

Note

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

Examples

Input #1
1 2 3
Output #1
2 4 6
Input #2
3 2 1
Output #2
6 4 2

Sign in to submit a solution

Signing up is free and takes a minute.