#C89. Employee Training Eligibility Checker

    ID: 52932 Type: Default 1000ms 256MiB

Employee Training Eligibility Checker

Employee Training Eligibility Checker

This problem requires you to determine whether an employee is eligible for a training program based on three criteria:

  • Proficiency in Java (must be 'Y' for yes).
  • At least 5 completed projects.
  • At least 3 years of experience.

The input is provided as a single line containing three comma-separated values. The output should be a single line: either ELIGIBLE if all criteria are met, or NOT ELIGIBLE otherwise.

The eligibility condition can be mathematically represented in LaTeX as:

$$\text{Eligibility} = \begin{cases} \text{ELIGIBLE} & \text{if } proficiency = 'Y' \;\text{and}\; projects \geq 5 \;\text{and}\; experience \geq 3 \\ \text{NOT ELIGIBLE} & \text{otherwise} \end{cases}$$

inputFormat

The input is read from standard input in a single line. The line contains three values separated by commas:

  1. A character 'Y' or 'N' indicating Java proficiency.
  2. An integer representing the number of completed projects.
  3. An integer representing the years of experience.

Example input: Y,6,4

outputFormat

The output, written to standard output, is a single line which is either ELIGIBLE or NOT ELIGIBLE based on the evaluation of the criteria.

Example output: ELIGIBLE

## sample
Y,6,4
ELIGIBLE