/**
 * This function takes two complex numbers as input and returns their product.
 */
fun multiplyComplexNumbers(complex1: Pair<Int, Int>, complex2: Pair<Int, Int>): Pair<Int, Int> {

    val realPart = complex1.first * complex2.first - complex1.second * complex2.second
    val imaginaryPart = complex1.first * complex2.second + complex1.second * complex2.first
    return Pair(realPart, imaginaryPart)
}
/**
 * This function takes two complex numbers as input and returns their product.
 */
fun multiplyComplexNumbers(complex1: Pair<Int, Int>, complex2: Pair<Int, Int>): Pair<Int, Int> {
/**
 * This function takes two complex numbers as input and returns their product.
 */
fun multiplyComplexNumbers(complex1: Pair<Int, Int>, complex2: Pair<Int, Int>): Pair<Int, Int> {

    val realPart = complex1.first * complex2.first - complex1.second * complex2.second
    val imaginaryPart = complex1.first * complex2.second + complex1.second * complex2.first
    return Pair(realPart, imaginaryPart)
}