P27257 [AtCoder] Moving
普及+
题目描述

Problem Description

It takes $ X $ hours to move from point A to point B, and $ Y $ hours to move from point B to point C.

Determine if it is possible to move from point A to point C via point B within $ Z $ hours and 30 minutes.

Input Format

The input is given from the standard input in the following format:

$ X $ $ Y $ $ Z $

Output Format

Output $ 1 $ if it is possible to move within $ Z $ hours and 30 minutes, otherwise output $ 0 $.

Sample Input and Output

Sample Input #1

2
3
4

Sample Output #1

0

Sample Input #2

3
4
10

Sample Output #2

1

Notes/Hints

Constraints

  • $1 \leq X \leq 100$.
  • $1 \leq Y \leq 100$.
  • $1 \leq Z \leq 100$.
  • All values input are integers.

Sample Explanation 1

It takes $ 2 $ hours to move from point A to point B, and $ 3 $ hours to move from point B to point C. Therefore, it takes $ 5 $ hours to move from point A to point C via point B. Since it is not possible to move within $ 4 $ hours and 30 minutes, output $ 0 $.

Sample Explanation 2

It takes $ 7 $ hours to move from point A to point C via point B. Since it is possible to move within $ 10 $ hours and 30 minutes, output $ 1 $.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
2 3 4
样例输出
0