import javabook.*;
class RowsMain
	{
	public static void main(String args[])
		{
		Rows rows = new Rows();
		int limit;
		limit = rows.getLimit();
		rows.print(limit);	
		}
	}
class Rows
{	
	MainWindow mainWindow = new MainWindow();
		
	public int getLimit()
	{
	mainWindow.show();
	int limit;
	InputBox inputBox = new InputBox(mainWindow);
	limit=inputBox.getInteger("Print numbers from 10 to what?");
	return limit;
	}

	public void print(int limit)
	{
	OutputBox outputBox = new OutputBox(mainWindow);
	outputBox.show();
	int test;
	for (int i = 10; i <= limit; i++)
		{
		test = i%10;
		if (test==9)
			{
			outputBox.printLine(" " + i);
			}
		else
			{
			outputBox.print(" " + i);
			}
		}
	}
}