Control C102A

Write a program that, given five integers x, a, b, c, d, determines if
x ∈ [a, b] ∪ [c, d].

Input

The input is five integers x, a, b, c, d.

Output

The output is a line with the text “yes” if x ∈ [a, b] ∪ [c, d] and the
text “no” otherwise.

Problem information

Author: Unknown
Translator: Gabriel Valiente

Generation: 2026-07-14T14:10:18.432Z

© Jutge.org, 2006–2026.
https://jutge.org
