LearnPy Hub
← Arena
EasyRating 800

Odd Socks

You have a red socks and b blue socks. First you wear different-coloured pairs for as many days as possible, then same-coloured pairs. Print both numbers of days.

Input

Two integers a and b (1 ≤ a, b ≤ 100).

Output

Two integers.

Sample 1

Input
3 1
Output
1 1

Sample 2

Input
2 3
Output
2 0
solution.py
Output appears here
Odd Socks · Python Arena problem · LearnPy Hub