Hide

Problem D
Tall Enough

/problems/mines21.tallenough/file/statement/en/img-0001.jpg
Retrieved from Wikipedia, public domain

The new amusement park you’ve opened has a small problem: people are riding your roller coasters without meeting the safety requirements! Instead of hiring more employees to enforce the safety requirements, you decide to augment your coaster control system with a new safety check.

The system you’re creating will accept a list of heights in inches and will output “True” if all of the heights are greater than or equal to $48$ inches. If any of the heights are less than $48$ inches, it will output “False”.

Input

The first line is $n$, an integer between $1$ and $1\, 000$ inclusive, defining the number of heights you’ll receive.

The next $n$ lines will each contain a single height in inches. Each height will be an integer between $1$ and $1\, 000$ inclusive.

Output

If any of the heights are less than $48$ then output “False” without the quotes. Otherwise, output “True” without the quotes.

Sample Input 1 Sample Output 1
3
50
60
100
True
Sample Input 2 Sample Output 2
4
75
40
80
600
False

Please log in to submit a solution to this problem

Log in