#K86507. Eligibility Checker for Daily Challenges
Eligibility Checker for Daily Challenges
Eligibility Checker for Daily Challenges
In this problem, you are given a binary string (S) where each character represents whether a participant completed a daily challenge (with '1' indicating completion and '0' indicating otherwise). The participant is eligible for the grand prize if they have completed at least five challenges, i.e., if (#\text{ of } 1's \ge 5). Your task is to read the string from standard input and print "ELIGIBLE" if the condition is met, or "NOT ELIGIBLE" otherwise.
inputFormat
The input consists of a single line containing the binary string (S). The string will contain only the characters '0' and '1'.
outputFormat
Output a single line: "ELIGIBLE" if the number of '1's in (S) is at least 5, and "NOT ELIGIBLE" otherwise.## sample
1111111
ELIGIBLE