Sorting Three Numbers

Time limit1sMemory limit128 MB

Summary
Read three distinct integers and print them sorted from smallest to largest.
Level

Easy1 of 10

Topics
Sorting
Solved
No attempts yet

Problem

Given three distinct integers, sort them in ascending order and print them from smallest to largest.

Input

The first line contains three distinct integers separated by spaces. Each integer is between 1 and 1,000,000 inclusive.

Output

Print the three integers in ascending order on one line, separated by spaces.

Examples1

  1. Example 1

    Input
    3 1 2
    
    Expected output
    1 2 3