favorite We need a little bit of your help to keep things running, click on this banner to learn more

Week 1: November 2 – 8. Introduction to C language. Part 1

Professor and balloons

For the holiday, Professor bought blue, red, and yellow balloons. In total he bought n balloons. There are a yellow and blue balloons together. There are b red and blue balloons together.

How many blue, red and yellow balloons did the Professor buy?


Three positive integers n, a, b.


Print in one line the number of blue, red and yellow balloons that Professor bought.

Time limit 1 second
Memory limit 128 MiB
Input example #1
10 6 8
Output example #1
4 4 2