Lớn nhất và bé nhất

View as PDF



Problem type
Points: 100 Time limit: 1.0s Memory limit: 1G Input: stdin Output: stdout

Nhập 5 số nguyên dương. Hãy in ra số nhỏ nhất và số lớn nhất.

Input

  • Nhập 5 số nguyên dương (không quá \(10^9\)).

Output

  • In ra số nhỏ nhất và số lớn nhất.

Example

Test 1
Input
1 1 4 4 1000000
Output
1 1000000

Comments

There are no comments at the moment.