fun QQ() {
    for (i in 1 .. 9) {
        for (j in 1 .. 9) {
            println("${i}x${j}=${i*j}")
        }
    }
}

// fun gcd(a: Int, b: Int) : Int = if (b == 0) a else gcd(b, a % b)

fun main(args: Array<String>) {
    QQ()
    // println(gcd(10, 2))
    // println(gcd(1071, 1029))

    // var top3 = readLine()?.split(" ")?.map { n -> n.toInt() }?.sorted()?.filterIndexed { i, _ -> i < 3 }
    // println(top3)
}
