for c in range(2,9): for x in range(1,10): print str(x)*c