import time
rows = int(input("Enter the no.of rows ? : "))
coloumns = int(input("Enter the no.of coloumns ? :  "))
name = input("Enter the name : ")

for n in range (rows):
    for m in range (coloumns):
    
        print (name,end = "")
    print ()    