LCC '21 Contest 2 J1 - Tracy's Bread

View as PDF

Submit solution

Points: 3 (partial)
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

Tracy is baking some bread! She would like to bake the bread based on the temperature it is outside. There are 3 temperature ranges Tracy would like to bake bread in. If the temperature is from A to B degrees, Tracy would like to bake pumpernickel. If the temperature is from C to D degrees, Tracy would like to bake sourdough. If the temperature is from E to F degrees, Tracy would like to bake cornbread. It's guaranteed that the temperature will fall into exactly one of the ranges.

Input Specification

The first line will contain two space-separated integers, A and B (1 \leq A < B \leq 100), the temperature range in which Tracy wants to bake pumpernickel in.

The next line will contain two space-separated integers, C and D (1 \leq C < D \leq 100), the temperature range in which Tracy wants to bake sourdough in.

The next line will contain two space-separated integers, E and F (1 \leq E < F \leq 100), the temperature range in which Tracy wants to bake cornbread in.

The last line will contain a single integer, T (1 \leq T \leq 100), the temperature outside.

Output Specification

Output the type of bread Tracy wants to bake, pumpernickel, sourdough, or cornbread.

Sample Input

1 2
5 99
3 4
3

Sample Output

cornbread

Comments

There are no comments at the moment.