harbor run -t openthoughts/tasktrove-exp-rpt-taco-v2-taco-5454harbor download openthoughts/tasktrove-exp-rpt-taco-v2-taco-5454In a dream, a student finds himself in a mathematical analysis exam with a formidable professor. To avoid facing the grim realities of life, he must solve a peculiar problem involving two extraterrestrial characters: a Venusian girl and a Marsian boy, who want to hold hands comfortably.
The challenge is to determine whether they can hold hands without discomfort based on the number of fingers they have on each hand.
The Venusian girl has:
gl fingers on her left handgr fingers on her right handThe Marsian boy has:
bl fingers on his left handbr fingers on his right handThey can only hold hands comfortably if:
They can choose who stands on the left or the right.
gl and gr (0 ≤ gl, gr ≤ 100), representing the number of fingers on the Venusian girl's left and right hands, respectively.bl and br (0 ≤ bl, br ≤ 100), representing the number of fingers on the Marsian boy's left and right hands, respectively.Input 1:
5 1
10 5
Output 1:
YES
Input 2:
4 5
3 3
Output 2:
YES
Input 3:
1 2
11 6
Output 3:
NO
The boy and the girl do not care who stands on the left; the important part is that they find a way to hold hands comfortably.
Implement the solution in /app/.
Important: place your implementation at /app/solution.py so the verifier can run it.