Problem4517--植树造林

4517: 植树造林

[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">alns="http://www.w3.org/1998/Math/MathML">blns="http://www.w3.org/1998/Math/MathML">c



Output

  • 单个整数:表示补种数量。

Sample Input Copy

2 1 3

Sample Output Copy

3

Source/Category