x = int(input()) i = 0 while x > i: j = 0 while x > j: print("*",end="") j += 1 print("\n", end="") i += 1