/**
 * This function determines the outcome of a dancer's performance based on their age, experience, and gender.
 * Dancers above 18 years old with at least 5 years of experience are considered experienced performers.
 * The performance is successful if the dancer is either an experienced male or an inexperienced female.
 */
fun dancerPerformance(age: Int, experience: Int, gender: String): String {

    return if (age >= 18 && experience >= 5) {
        if (gender == "male" || (gender == "female" && experience < 1)) {
            "Successful Performance"
        } else {
            "Unsuccessful Performance"
        }
    } else {
        if (gender == "female" && (age >= 18 || experience >= 1)) {
            "Successful Performance"
        } else {
            "Unsuccessful Performance"
        }
    }
}
/**
 * This function determines the outcome of a dancer's performance based on their age, experience, and gender.
 * Dancers above 18 years old with at least 5 years of experience are considered experienced performers.
 * The performance is successful if the dancer is either an experienced male or an inexperienced female.
 */
fun dancerPerformance(age: Int, experience: Int, gender: String): String {
/**
 * This function determines the outcome of a dancer's performance based on their age, experience, and gender.
 * Dancers above 18 years old with at least 5 years of experience are considered experienced performers.
 * The performance is successful if the dancer is either an experienced male or an inexperienced female.
 */
fun dancerPerformance(age: Int, experience: Int, gender: String): String {

    return if (age >= 18 && experience >= 5) {
        if (gender == "male" || (gender == "female" && experience < 1)) {
            "Successful Performance"
        } else {
            "Unsuccessful Performance"
        }
    } else {
        if (gender == "female" && (age >= 18 || experience >= 1)) {
            "Successful Performance"
        } else {
            "Unsuccessful Performance"
        }
    }
}