Problem4493--数球数

4493: 数球数

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

体育馆里有足球,篮球与排球,已知:

  • 足球与篮球共有 lns="http://www.w3.org/1998/Math/MathML">a 个;
  • 篮球与排球共有 lns="http://www.w3.org/1998/Math/MathML">b 个;
  • 排球与足球共有 lns="http://www.w3.org/1998/Math/MathML">c 个。

请问足球,篮球和排球各自有几个?


Input

  • 第一行:一个整数 lns="http://www.w3.org/1998/Math/MathML">a,表示足球和篮球共有 lns="http://www.w3.org/1998/Math/MathML">a 个;
  • 第二行:一个整数 lns="http://www.w3.org/1998/Math/MathML">b,表示篮球和排球共有 lns="http://www.w3.org/1998/Math/MathML">b 个;
  • 第三行:一个整数 lns="http://www.w3.org/1998/Math/MathML">c,表示排球和足球共有 lns="http://www.w3.org/1998/Math/MathML">c 个;

数据范围

  • lns="http://www.w3.org/1998/Math/MathML">0b10000
  • lns="http://www.w3.org/1998/Math/MathML">0c10000
  • 保证输入数据合理,不存在矛盾情况。

Output

  • 第一行:一个整数,表示足球的数量;
  • 第二行:一个整数,表示篮球的数量;
  • 第三行:一个整数,表示排球的数量。

Sample Input Copy

8
5
7

Sample Output Copy

5
3
2

Source/Category