fun main(args: Array<String>) = panasonic2020d()

fun panasonic2020d() {
    val n = readLine()!!.toInt()

    val answer = mutableListOf<String>()

    for (i in 0 until n) {
        answer.add("a".repeat(n - i) + "b".repeat(i))
    }

    println(answer.joinToString(System.lineSeparator()))
}
