So sánh #3

View as PDF



Problem type
Points: 10 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Tìm số lớn nhất, bé nhất trong \(3\) số nguyên \(a, b, c\).

Input

  • Gồm một dòng duy nhất chứa \(3\) số nguyên lần lượt là \(a, b, c\) \((|a, b, c| \leq 1000)\).

Output

  • Gồm một dòng duy nhất chứa \(2\) số nguyên lần lượt là số bé nhất, lớn nhất.

Example

Test 1
Input
9 6 2
Output
2 9
Test 2
Input
1 9 5
Output
1 9

Comments

There are no comments at the moment.