/**
 * As a fashion designer, you need to calculate the hip size of a person
 * based on their waist size, bust size, and height.
 *
 * Complete the code by using left and right shift operators along with the is operator
 * to calculate the hip size.
 *
 * @param waistSize the waist size of the person (in inches)
 * @param bustSize the bust size of the person (in inches)
 * @param height the height of the person (in inches)
 * @param isFemale a boolean value indicating whether the person is a female
 * @return the calculated hip size of the person (in inches)
 */
fun calculateHipSize(waistSize: Int, bustSize: Int, height: Int, isFemale: Boolean): Int {

    // Calculate the hip size using left and right shift operators along with the is operator
    val hipSize: Int = if (isFemale) {
        ((waistSize shl 1) + bustSize) shr (height % 7)
    } else {
        waistSize shl (bustSize % 3)
    }
    return hipSize
}

// Example usage
val waist = 30
val bust = 36
val height = 64
val isFemale = true

val result = calculateHipSize(waist, bust, height, isFemale)
/**
 * As a fashion designer, you need to calculate the hip size of a person
 * based on their waist size, bust size, and height.
 *
 * Complete the code by using left and right shift operators along with the is operator
 * to calculate the hip size.
 *
 * @param waistSize the waist size of the person (in inches)
 * @param bustSize the bust size of the person (in inches)
 * @param height the height of the person (in inches)
 * @param isFemale a boolean value indicating whether the person is a female
 * @return the calculated hip size of the person (in inches)
 */
fun calculateHipSize(waistSize: Int, bustSize: Int, height: Int, isFemale: Boolean): Int {
/**
 * As a fashion designer, you need to calculate the hip size of a person
 * based on their waist size, bust size, and height.
 *
 * Complete the code by using left and right shift operators along with the is operator
 * to calculate the hip size.
 *
 * @param waistSize the waist size of the person (in inches)
 * @param bustSize the bust size of the person (in inches)
 * @param height the height of the person (in inches)
 * @param isFemale a boolean value indicating whether the person is a female
 * @return the calculated hip size of the person (in inches)
 */
fun calculateHipSize(waistSize: Int, bustSize: Int, height: Int, isFemale: Boolean): Int {

    // Calculate the hip size using left and right shift operators along with the is operator
    val hipSize: Int = if (isFemale) {
        ((waistSize shl 1) + bustSize) shr (height % 7)
    } else {
        waistSize shl (bustSize % 3)
    }
    return hipSize
}

// Example usage
val waist = 30
val bust = 36
val height = 64
val isFemale = true

val result = calculateHipSize(waist, bust, height, isFemale)