OpenKattis
Kattis Set 09

#### Start

2019-03-18 13:00 UTC

## Kattis Set 09

#### End

2019-03-25 09:29 UTC
The end is near!
Contest is over.
Not yet started.
Contest is starting in -343 days 17:16:32

164:29:59

0:00:00

# Problem EDick and Jane

Dick is $d=12$ years old. When we say this, we mean that it is at least twelve and not yet thirteen years since Dick was born.

Dick and Jane have three pets: Spot the dog, Puff the Cat, and Yertle the Turtle. Spot was $s$ years old when Puff was born; Puff was $p$ years old when Yertle was born; Spot was $y$ years old when Yertle was born. The sum of Spot’s age, Puff’s age, and Yertle’s age equals the sum of Dick’s age ($d$) and Jane’s age ($j$). How old are Spot, Puff, and Yertle?

## Input

Each input line contains four non-negative integers: $s$, $p$, $y$, $j$ as defined above. All numbers are at most $10^9$ and there will be at most 250 test cases.

## Output

For each input line, print a line containing three integers: Spot’s age, Puff’s age, and Yertle’s age. Ages are given in years, as described in the first paragraph.

Sample Input 1 Sample Output 1
5 5 10 9
5 5 10 10
5 5 11 10

12 7 2
13 7 2
13 7 2