Page not loading? Try clicking here.
Placeholder

#5874

I should go home for Chuseok. 2s 1024MB

Problems

Hyungseok plans to go to his family home for Chuseok.

He will arrive at the family home on the morning of A days from today, and leave the family home to return to Seoul on the morning of B days from today.

However, Hyungseok's younger brother, Seokhyeong, decided to visit the family home briefly on the afternoon of C days from today and then leave.

Will Hyungseok and Seokhyeong be able to meet?


Input

Input is provided from standard input in the following format.

A B C

[Constraints]

1 ≤ A < B ≤ 100 .

1 ≤ C ≤ 100 .


Output

Print 1 if they can meet, and 0 otherwise.


Example #1

2 5 3
1

Hyung-seok goes to his family home from the morning of 2 days later until the morning of 5 days later. On the other hand, Seok-hyung visits his family home on the afternoon of 3 days later. Therefore, since the two can meet, output 1.


Example #2

20 22 19
0

Example #3

24 30 30
0

Example #4

1 100 99
1


Source

JOI 2021 예선

You must sign in to write code.