For given three integers $a, b, c$, print the minimum value and the maximum value.

Constraints

* $-1,000,000,000 \leq a, b, c \leq 1,000,000,000$

Input

The input is given in the following format.


$a \; b \; c\;$


Three integers $a, b, c$ are given in a line.

Output

Print the minimum and maximum values separated by a space in a line.

Example

Input

4 5 3


Output

3 5
#include <bits/stdc++.h>
#define int long long

using namespace std;

int32_t main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int a,b,c,res=INT_MIN,p=INT_MAX;
    cin >> a >> b >> c;
    if(p > a) p = a;
    if(p > b) p = b;
    if(p > c) p = c;
    if(a > res) res = a;
    if(b > res) res = b;
    if(c > res) res = c;
    cout << p <<" " << res << endl;
    return 0;
}

