P27911 [洛谷] [Language Monthly Contest 202402] Archery
普及-
题目描述

Problem Description

bj12z_jiasiyuan observed three people, A, B, and C, engaged in archery.

They each hit $x$ rings, $y$ rings, and $z$ rings respectively. If the number of rings hit by one person is greater than the sum of the rings hit by the other two people, a "mysterious event" occurs.

Please inform bj12z_jiasiyuan of the number of "mysterious events" that occurred.

Input Format

The input consists of a single line with three integers $x, y, z$, representing the number of rings hit by A, B, and C respectively.

Output Format

The output consists of a single line with one integer, representing the number of "mysterious events" that occurred.

Sample Input and Output

Sample Input #1

7 4 2

Sample Output #1

1

Sample Input #2

5 3 7

Sample Output #2

0

Notes

Sample Explanation

  • For Sample 1, since $7 > 4 + 2$, one "mysterious event" occurs.
  • For Sample 2, no "mysterious event" occurs.

Data Size and Constraints

For $100\%$ of the data, $1 \leq x, y, z \leq 10$.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
7 4 2
样例输出
1