n = int(input()) result='' for i in range(1,n+1): result+=str(i)*n print(result)