LearnPy Hub
← Arena
EasyRating 900

Restore Three Numbers

Someone wrote a+b, a+c, b+c and a+b+c for three positive integers, in random order. Print a, b and c in any order you like, but here print them from smallest to largest.

Input

Four integers on one line.

Output

Three integers.

Sample 1

Input
3 6 5 4
Output
1 2 3

Sample 2

Input
40 40 40 60
Output
20 20 20
solution.py
Output appears here
Restore Three Numbers · Python Arena problem · LearnPy Hub