#K69432. Fair Age Distribution
Fair Age Distribution
Fair Age Distribution
Given a list of participants' ages, determine if the number of children (participants aged strictly less than 18) is less than or equal to the number of adults (participants aged 18 and above). Formally, let ( C ) be the count of children and ( A ) be the count of adults; you need to check whether ( C \le A ). Print “True” if the condition holds, and “False” otherwise.
inputFormat
The input is provided via standard input (stdin). The first line contains an integer ( n ) representing the number of participants. The second line contains ( n ) space-separated integers representing the ages of the participants.
outputFormat
Output a single line to standard output (stdout) containing either True or False depending on whether the number of children (age < 18) is less than or equal to the number of adults (age ( \ge 18 )).## sample
2
17 18
True