## Spring Coding Bowl '22 P2 - Chicken Strips

View as PDF

Points: 5 (partial)
Time limit: 0.5s
Memory limit: 64M

Author:
Problem types

Colin loves chicken strips. After searching far and wide, he has finally found the great chicken strip shrine!

The great chicken strip shrine contains a sorted line of infinite chicken strips where each chicken strip has a unique integer attached to it. To have a meal, Colin will choose to eat all the chicken strips in the range . For example, if Colin was to eat all the chicken strips in the range , he would be eating chicken strips .

However, due to someone being a bit too hungry, the chicken strips between the range no longer exist. For example, if Colin was to eat the chicken strips in the range but the chicken strips in the range no longer exist, Colin would be eating chicken strips .

The taste score of the meal is the product of the numbers of all the remaining chicken strips in the range . For example, if the remaining chicken strips were , the taste score would be .

Colin would like to know if the taste score of the meal is positive, negative, zero, or nonexistent. Please help build him a program to do this!

#### Input Specification

The first line of input will contain space-separated integers and , the lower and upper bound of the range of chicken strip values Colin would like to eat, respectively.

The next line of input will contain space-separated integers and , the lower and upper bound of the range of chicken strips that no longer exist, respectively.

#### Output Specification

Let be the taste score of Colin's meal:

If , print CHICKEN STRIP!!!. If , print 0. If , print -1. If does not exist, print burnt chicken nugget.

#### Sample Input 1

1 5
2 4

#### Sample Output 1

CHICKEN STRIP!!!

#### Explanation for Sample 1

The chicken strips in the range are . If we exclude the chicken strips from , we get . The product of the leftover chicken strips is which is positive. Thus, print CHICKEN STRIP!!!.

#### Sample Input 2

-9 1
-6 0

#### Sample Output 2

-1

#### Explanation for Sample 2

The chicken strips in the range are . If we exclude the chicken strips from , we get . The product of the leftover chicken strips is which is negative. Thus, print -1.

#### Sample Input 3

-2 2
-2 2

#### Sample Output 3

burnt chicken nugget

#### Explanation for Sample 3

The chicken strips in the range are . If we exclude the chicken strips from , we get . The product of the leftover chicken strips does not exist because there are no leftover chicken strips. Thus, print burnt chicken nugget.