while True: try: n = int(input()) for i in range(n): for i in range(n-1): print('*',end=' ') print('*') except EOFError: break