Minmax

সময় লিমিট: 1.0 s

মেমরি লিমিট: 32.0 MB

Description

You are given 4 integers. Print two number in separate line sequencially: the lowest and the largest integer among them.

Input

The only line of input takes 4 numbers

Output

print 2 line
in the first line print the lowest number
in the second line print the largest number

Sample 1

Input

1 4 2 3

Output

1
4

Sample 2

Input

9 0 9 0

Output

0
9

Information

ID
1022
Difficulty
5
Category
Beginners দেখানোর জন্য ক্লিক করুন
Tags
(None)
# Submissions
62
Accepted
24
Accepted Ratio
39%
Uploaded By

Related

In following contests:

Brain booster - 1