#D9276. Max

    ID: 7708 Type: Default 1000ms 268MiB

Max

Max

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

Constraints

  • 1,000,000,000a,b,c1,000,000,000-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  a \; b \; c\;

Three integers a,b,ca, 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

inputFormat

Input

The input is given in the following format.

a  b  c  a \; b \; c\;

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

outputFormat

Output

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

Example

Input

4 5 3

Output

3 5

样例

4 5 3
3 5