/**
 * Given a list of numbers and a target number, return true if the target number is present in the given list
 * after applying both left shift and right shift operators to each number in the list. Otherwise, return false.
 *
 * @param numbers A list of integer numbers.
 * @param target An integer target number.
 * @return true if the target number is present after applying shifts to each number, false otherwise.
 */
fun shiftInOperation(numbers: List<Int>, target: Int): Boolean {

    // Left shift each number in the list by 2 bits
    val shiftedNumbers = numbers.map { it shl 2 }

    // Right shift each number in the list by 1 bit
    val finalShiftedNumbers = shiftedNumbers.map { it shr 1 }

    // Check if the target number is in the shifted list
    return target in finalShiftedNumbers
}
/**
 * Given a list of numbers and a target number, return true if the target number is present in the given list
 * after applying both left shift and right shift operators to each number in the list. Otherwise, return false.
 *
 * @param numbers A list of integer numbers.
 * @param target An integer target number.
 * @return true if the target number is present after applying shifts to each number, false otherwise.
 */
fun shiftInOperation(numbers: List<Int>, target: Int): Boolean {
/**
 * Given a list of numbers and a target number, return true if the target number is present in the given list
 * after applying both left shift and right shift operators to each number in the list. Otherwise, return false.
 *
 * @param numbers A list of integer numbers.
 * @param target An integer target number.
 * @return true if the target number is present after applying shifts to each number, false otherwise.
 */
fun shiftInOperation(numbers: List<Int>, target: Int): Boolean {

    // Left shift each number in the list by 2 bits
    val shiftedNumbers = numbers.map { it shl 2 }

    // Right shift each number in the list by 1 bit
    val finalShiftedNumbers = shiftedNumbers.map { it shr 1 }

    // Check if the target number is in the shifted list
    return target in finalShiftedNumbers
}