fun main(args: Array<String>) {
val (a, b) = readLine()!!.split(' ').map(String::toInt)
for (i in 1..b) {
for (j in 1..a) {
print("*")
}
println()
}
}
fun main(args: Array<String>) {
val (a, b) = readLine()!!.split(' ').map(String::toInt)
var star: String = ""
for (i in 1..a) {
star += "*"
}
for (i in 1..b) {
println(star)
}
}