Skip to main content
Thursday (26.11.2026) at 20:00: ALGOR Contest: Round #5 starts!

~/algor $ cat problems/if-uch-sonni-saralash

Sort Three Numbers

Easy 1000 ms 64 MB 14%
Share
Sorting three numbers in ascending order by comparison

Given three integers $A$, $B$, and $C$. Output them in ascending order (from smallest to largest). Numbers may be equal.

Input

Three space-separated integers in a single line: $A$, $B$, and $C$.

Output

In a single line, three space-separated integers in ascending order.

Note

$-10^9 \le A, B, C \le 10^9$

Examples

Input #1

                                        
Output #1

                                        
Input #2

                                        
Output #2

                                        

Sign in to submit a solution

Signing up is free and takes a minute.