n = int( input( "Enter a number" ) ) c = 1 while n >= c: print(c, end=" ") if c % 10 == 0: print() c += 1