var
	k:Longint;
begin
	read(k);
	writeln('1');
	writeln('2');
	writeln('3');
	writeln('4');
	writeln('5');
	writeln('6');
	writeln('7');
	writeln('8');
	writeln('9');
	writeln('19');
	if k=10 then exit;
	writeln('29');
	writeln('39');
	writeln('49');
	writeln('59');
	writeln('69');
	writeln('79');
	writeln('89');
	writeln('99');
	writeln('199');
	writeln('299');
	writeln('399');
	writeln('499');
	writeln('599');
	writeln('699');
	writeln('799');
	writeln('899');
	writeln('999');
	writeln('1099');
	writeln('1199');
	writeln('1299');
	writeln('1399');
	writeln('1499');
	writeln('1599');
	writeln('1699');
	writeln('1799');
	writeln('1899');
	writeln('1999');
	writeln('2999');
	writeln('3999');
	writeln('4999');
	writeln('5999');
	writeln('6999');
	writeln('7999');
	writeln('8999');
	writeln('9999');
	writeln('10999');
	writeln('11999');
	writeln('12999');
	writeln('13999');
	writeln('14999');
	writeln('15999');
	writeln('16999');
	writeln('17999');
	writeln('18999');
	writeln('19999');
	writeln('20999');
	writeln('21999');
	writeln('22999');
	writeln('23999');
	writeln('24999');
	writeln('25999');
	writeln('26999');
	writeln('27999');
	writeln('28999');
	writeln('29999');
	writeln('39999');
	writeln('49999');
	writeln('59999');
	writeln('69999');
	writeln('79999');
	writeln('89999');
	writeln('99999');
	writeln('109999');
	writeln('119999');
	writeln('129999');
	writeln('139999');
	writeln('149999');
	writeln('159999');
	writeln('169999');
	writeln('179999');
	writeln('189999');
	writeln('199999');
	writeln('209999');
	writeln('219999');
	writeln('229999');
	writeln('239999');
	writeln('249999');
	writeln('259999');
	writeln('269999');
	writeln('279999');
	writeln('289999');
	writeln('299999');
	writeln('309999');
	writeln('319999');
	writeln('329999');
	writeln('339999');
	writeln('349999');
	writeln('359999');
	writeln('369999');
	writeln('379999');
	writeln('389999');
	writeln('399999');
	writeln('499999');
	writeln('599999');
	writeln('699999');
	writeln('799999');
	writeln('899999');
	writeln('999999');
	writeln('1099999');
	writeln('1199999');
	writeln('1299999');
	writeln('1399999');
	writeln('1499999');
	writeln('1599999');
	writeln('1699999');
	writeln('1799999');
	writeln('1899999');
	writeln('1999999');
	writeln('2099999');
	writeln('2199999');
	writeln('2299999');
	writeln('2399999');
	writeln('2499999');
	writeln('2599999');
	writeln('2699999');
	writeln('2799999');
	writeln('2899999');
	writeln('2999999');
	writeln('3099999');
	writeln('3199999');
	writeln('3299999');
	writeln('3399999');
	writeln('3499999');
	writeln('3599999');
	writeln('3699999');
	writeln('3799999');
	writeln('3899999');
	writeln('3999999');
	writeln('4099999');
	writeln('4199999');
	writeln('4299999');
	writeln('4399999');
	writeln('4499999');
	writeln('4599999');
	writeln('4699999');
	writeln('4799999');
	writeln('4899999');
	writeln('4999999');
	writeln('5999999');
	writeln('6999999');
	writeln('7999999');
	writeln('8999999');
	writeln('9999999');
	writeln('10999999');
	writeln('11999999');
	writeln('12999999');
	writeln('13999999');
	writeln('14999999');
	writeln('15999999');
	writeln('16999999');
	writeln('17999999');
	writeln('18999999');
	writeln('19999999');
	writeln('20999999');
	writeln('21999999');
	writeln('22999999');
	writeln('23999999');
	writeln('24999999');
	writeln('25999999');
	writeln('26999999');
	writeln('27999999');
	writeln('28999999');
	writeln('29999999');
	writeln('30999999');
	writeln('31999999');
	writeln('32999999');
	writeln('33999999');
	writeln('34999999');
	writeln('35999999');
	writeln('36999999');
	writeln('37999999');
	writeln('38999999');
	writeln('39999999');
	writeln('40999999');
	writeln('41999999');
	writeln('42999999');
	writeln('43999999');
	writeln('44999999');
	writeln('45999999');
	writeln('46999999');
	writeln('47999999');
	writeln('48999999');
	writeln('49999999');
	writeln('50999999');
	writeln('51999999');
	writeln('52999999');
	writeln('53999999');
	writeln('54999999');
	writeln('55999999');
	writeln('56999999');
	writeln('57999999');
	writeln('58999999');
	writeln('59999999');
	writeln('69999999');
	writeln('79999999');
	writeln('89999999');
	writeln('99999999');
	writeln('109999999');
	writeln('119999999');
	writeln('129999999');
	writeln('139999999');
	writeln('149999999');
	writeln('159999999');
	writeln('169999999');
	writeln('179999999');
	writeln('189999999');
	writeln('199999999');
	writeln('209999999');
	writeln('219999999');
	writeln('229999999');
	writeln('239999999');
	writeln('249999999');
	writeln('259999999');
	writeln('269999999');
	writeln('279999999');
	writeln('289999999');
	writeln('299999999');
	writeln('309999999');
	writeln('319999999');
	writeln('329999999');
	writeln('339999999');
	writeln('349999999');
	writeln('359999999');
	writeln('369999999');
	writeln('379999999');
	writeln('389999999');
	writeln('399999999');
	writeln('409999999');
	writeln('419999999');
	writeln('429999999');
	writeln('439999999');
	writeln('449999999');
	writeln('459999999');
	writeln('469999999');
	writeln('479999999');
	writeln('489999999');
	writeln('499999999');
	writeln('509999999');
	writeln('519999999');
	writeln('529999999');
	writeln('539999999');
	writeln('549999999');
	writeln('559999999');
	writeln('569999999');
	writeln('579999999');
	writeln('589999999');
	writeln('599999999');
	writeln('609999999');
	writeln('619999999');
	writeln('629999999');
	writeln('639999999');
	writeln('649999999');
	writeln('659999999');
	writeln('669999999');
	writeln('679999999');
	writeln('689999999');
	writeln('699999999');
	writeln('799999999');
	writeln('899999999');
	writeln('999999999');
	writeln('1099999999');
	writeln('1199999999');
	writeln('1299999999');
	writeln('1399999999');
	writeln('1499999999');
	writeln('1599999999');
	writeln('1699999999');
	writeln('1799999999');
	writeln('1899999999');
	writeln('1999999999');
	writeln('2099999999');
	writeln('2199999999');
	writeln('2299999999');
	writeln('2399999999');
	writeln('2499999999');
	writeln('2599999999');
	writeln('2699999999');
	writeln('2799999999');
	writeln('2899999999');
	writeln('2999999999');
	writeln('3099999999');
	writeln('3199999999');
	writeln('3299999999');
	writeln('3399999999');
	writeln('3499999999');
	writeln('3599999999');
	writeln('3699999999');
	writeln('3799999999');
	writeln('3899999999');
	writeln('3999999999');
	writeln('4099999999');
	writeln('4199999999');
	writeln('4299999999');
	writeln('4399999999');
	writeln('4499999999');
	writeln('4599999999');
	writeln('4699999999');
	writeln('4799999999');
	writeln('4899999999');
	writeln('4999999999');
	writeln('5099999999');
	writeln('5199999999');
	writeln('5299999999');
	writeln('5399999999');
	writeln('5499999999');
	writeln('5599999999');
	writeln('5699999999');
	writeln('5799999999');
	writeln('5899999999');
	writeln('5999999999');
	writeln('6099999999');
	writeln('6199999999');
	writeln('6299999999');
	writeln('6399999999');
	writeln('6499999999');
	writeln('6599999999');
	writeln('6699999999');
	writeln('6799999999');
	writeln('6899999999');
	writeln('6999999999');
	writeln('7099999999');
	writeln('7199999999');
	writeln('7299999999');
	writeln('7399999999');
	writeln('7499999999');
	writeln('7599999999');
	writeln('7699999999');
	writeln('7799999999');
	writeln('7899999999');
	writeln('7999999999');
	writeln('8999999999');
	writeln('9999999999');
	writeln('10999999999');
	writeln('11999999999');
	writeln('12999999999');
	writeln('13999999999');
	writeln('14999999999');
	writeln('15999999999');
	writeln('16999999999');
	writeln('17999999999');
	writeln('18999999999');
	writeln('19999999999');
	writeln('20999999999');
	writeln('21999999999');
	writeln('22999999999');
	writeln('23999999999');
	writeln('24999999999');
	writeln('25999999999');
	writeln('26999999999');
	writeln('27999999999');
	writeln('28999999999');
	writeln('29999999999');
	writeln('30999999999');
	writeln('31999999999');
	writeln('32999999999');
	writeln('33999999999');
	writeln('34999999999');
	writeln('35999999999');
	writeln('36999999999');
	writeln('37999999999');
	writeln('38999999999');
	writeln('39999999999');
	writeln('40999999999');
	writeln('41999999999');
	writeln('42999999999');
	writeln('43999999999');
	writeln('44999999999');
	writeln('45999999999');
	writeln('46999999999');
	writeln('47999999999');
	writeln('48999999999');
	writeln('49999999999');
	writeln('50999999999');
	writeln('51999999999');
	writeln('52999999999');
	writeln('53999999999');
	writeln('54999999999');
	writeln('55999999999');
	writeln('56999999999');
	writeln('57999999999');
	writeln('58999999999');
	writeln('59999999999');
	writeln('60999999999');
	writeln('61999999999');
	writeln('62999999999');
	writeln('63999999999');
	writeln('64999999999');
	writeln('65999999999');
	writeln('66999999999');
	writeln('67999999999');
	writeln('68999999999');
	writeln('69999999999');
	writeln('70999999999');
	writeln('71999999999');
	writeln('72999999999');
	writeln('73999999999');
	writeln('74999999999');
	writeln('75999999999');
	writeln('76999999999');
	writeln('77999999999');
	writeln('78999999999');
	writeln('79999999999');
	writeln('80999999999');
	writeln('81999999999');
	writeln('82999999999');
	writeln('83999999999');
	writeln('84999999999');
	writeln('85999999999');
	writeln('86999999999');
	writeln('87999999999');
	writeln('88999999999');
	writeln('89999999999');
	writeln('99999999999');
	writeln('109999999999');
	writeln('119999999999');
	writeln('129999999999');
	writeln('139999999999');
	writeln('149999999999');
	writeln('159999999999');
	writeln('169999999999');
	writeln('179999999999');
	writeln('189999999999');
	writeln('199999999999');
	writeln('209999999999');
	writeln('219999999999');
	writeln('229999999999');
	writeln('239999999999');
	writeln('249999999999');
	writeln('259999999999');
	writeln('269999999999');
	writeln('279999999999');
	writeln('289999999999');
	writeln('299999999999');
	writeln('309999999999');
	writeln('319999999999');
	writeln('329999999999');
	writeln('339999999999');
	writeln('349999999999');
	writeln('359999999999');
	writeln('369999999999');
	writeln('379999999999');
	writeln('389999999999');
	writeln('399999999999');
	writeln('409999999999');
	writeln('419999999999');
	writeln('429999999999');
	writeln('439999999999');
	writeln('449999999999');
	writeln('459999999999');
	writeln('469999999999');
	writeln('479999999999');
	writeln('489999999999');
	writeln('499999999999');
	writeln('509999999999');
	writeln('519999999999');
	writeln('529999999999');
	writeln('539999999999');
	writeln('549999999999');
	writeln('559999999999');
	writeln('569999999999');
	writeln('579999999999');
	writeln('589999999999');
	writeln('599999999999');
	writeln('609999999999');
	writeln('619999999999');
	writeln('629999999999');
	writeln('639999999999');
	writeln('649999999999');
	writeln('659999999999');
	writeln('669999999999');
	writeln('679999999999');
	writeln('689999999999');
	writeln('699999999999');
	writeln('709999999999');
	writeln('719999999999');
	writeln('729999999999');
	writeln('739999999999');
	writeln('749999999999');
	writeln('759999999999');
	writeln('769999999999');
	writeln('779999999999');
	writeln('789999999999');
	writeln('799999999999');
	writeln('809999999999');
	writeln('819999999999');
	writeln('829999999999');
	writeln('839999999999');
	writeln('849999999999');
	writeln('859999999999');
	writeln('869999999999');
	writeln('879999999999');
	writeln('889999999999');
	writeln('899999999999');
	writeln('909999999999');
	writeln('919999999999');
	writeln('929999999999');
	writeln('939999999999');
	writeln('949999999999');
	writeln('959999999999');
	writeln('969999999999');
	writeln('979999999999');
	writeln('989999999999');
	writeln('999999999999');
	writeln('1099999999999');
	writeln('1199999999999');
	writeln('1299999999999');
	writeln('1399999999999');
	writeln('1499999999999');
	writeln('1599999999999');
	writeln('1699999999999');
	writeln('1799999999999');
	writeln('1899999999999');
	writeln('1999999999999');
	writeln('2099999999999');
	writeln('2199999999999');
	writeln('2299999999999');
	writeln('2399999999999');
	writeln('2499999999999');
	writeln('2599999999999');
	writeln('2699999999999');
	writeln('2799999999999');
	writeln('2899999999999');
	writeln('2999999999999');
	writeln('3099999999999');
	writeln('3199999999999');
	writeln('3299999999999');
	writeln('3399999999999');
	writeln('3499999999999');
	writeln('3599999999999');
	writeln('3699999999999');
	writeln('3799999999999');
	writeln('3899999999999');
	writeln('3999999999999');
	writeln('4099999999999');
	writeln('4199999999999');
	writeln('4299999999999');
	writeln('4399999999999');
	writeln('4499999999999');
	writeln('4599999999999');
	writeln('4699999999999');
	writeln('4799999999999');
	writeln('4899999999999');
	writeln('4999999999999');
	writeln('5099999999999');
	writeln('5199999999999');
	writeln('5299999999999');
	writeln('5399999999999');
	writeln('5499999999999');
	writeln('5599999999999');
	writeln('5699999999999');
	writeln('5799999999999');
	writeln('5899999999999');
	writeln('5999999999999');
	writeln('6099999999999');
	writeln('6199999999999');
	writeln('6299999999999');
	writeln('6399999999999');
	writeln('6499999999999');
	writeln('6599999999999');
	writeln('6699999999999');
	writeln('6799999999999');
	writeln('6899999999999');
	writeln('6999999999999');
	writeln('7099999999999');
	writeln('7199999999999');
	writeln('7299999999999');
	writeln('7399999999999');
	writeln('7499999999999');
	writeln('7599999999999');
	writeln('7699999999999');
	writeln('7799999999999');
	writeln('7899999999999');
	writeln('7999999999999');
	writeln('8099999999999');
	writeln('8199999999999');
	writeln('8299999999999');
	writeln('8399999999999');
	writeln('8499999999999');
	writeln('8599999999999');
	writeln('8699999999999');
	writeln('8799999999999');
	writeln('8899999999999');
	writeln('8999999999999');
	writeln('9099999999999');
	writeln('9199999999999');
	writeln('9299999999999');
	writeln('9399999999999');
	writeln('9499999999999');
	writeln('9599999999999');
	writeln('9699999999999');
	writeln('9799999999999');
	writeln('9899999999999');
	writeln('9999999999999');
	writeln('10999999999999');
	writeln('11999999999999');
	writeln('12999999999999');
	writeln('13999999999999');
	writeln('14999999999999');
	writeln('15999999999999');
	writeln('16999999999999');
	writeln('17999999999999');
	writeln('18999999999999');
	writeln('19999999999999');
	writeln('20999999999999');
	writeln('21999999999999');
	writeln('22999999999999');
	writeln('23999999999999');
	writeln('24999999999999');
	writeln('25999999999999');
	writeln('26999999999999');
	writeln('27999999999999');
	writeln('28999999999999');
	writeln('29999999999999');
	writeln('30999999999999');
	writeln('31999999999999');
	writeln('32999999999999');
	writeln('33999999999999');
	writeln('34999999999999');
	writeln('35999999999999');
	writeln('36999999999999');
	writeln('37999999999999');
	writeln('38999999999999');
	writeln('39999999999999');
	writeln('40999999999999');
	writeln('41999999999999');
	writeln('42999999999999');
	writeln('43999999999999');
	writeln('44999999999999');
	writeln('45999999999999');
	writeln('46999999999999');
	writeln('47999999999999');
	writeln('48999999999999');
	writeln('49999999999999');
	writeln('50999999999999');
	writeln('51999999999999');
	writeln('52999999999999');
	writeln('53999999999999');
	writeln('54999999999999');
	writeln('55999999999999');
	writeln('56999999999999');
	writeln('57999999999999');
	writeln('58999999999999');
	writeln('59999999999999');
	writeln('60999999999999');
	writeln('61999999999999');
	writeln('62999999999999');
	writeln('63999999999999');
	writeln('64999999999999');
	writeln('65999999999999');
	writeln('66999999999999');
	writeln('67999999999999');
	writeln('68999999999999');
	writeln('69999999999999');
	writeln('70999999999999');
	writeln('71999999999999');
	writeln('72999999999999');
	writeln('73999999999999');
	writeln('74999999999999');
	writeln('75999999999999');
	writeln('76999999999999');
	writeln('77999999999999');
	writeln('78999999999999');
	writeln('79999999999999');
	writeln('80999999999999');
	writeln('81999999999999');
	writeln('82999999999999');
	writeln('83999999999999');
	writeln('84999999999999');
	writeln('85999999999999');
	writeln('86999999999999');
	writeln('87999999999999');
	writeln('88999999999999');
	writeln('89999999999999');
	writeln('90999999999999');
	writeln('91999999999999');
	writeln('92999999999999');
	writeln('93999999999999');
	writeln('94999999999999');
	writeln('95999999999999');
	writeln('96999999999999');
	writeln('97999999999999');
	writeln('98999999999999');
	writeln('99999999999999');
	writeln('100999999999999');
	writeln('101999999999999');
	writeln('102999999999999');
	writeln('103999999999999');
	writeln('104999999999999');
	writeln('105999999999999');
	writeln('106999999999999');
	writeln('107999999999999');
	writeln('108999999999999');
	writeln('109999999999999');
	writeln('119999999999999');
	writeln('129999999999999');
	writeln('139999999999999');
	writeln('149999999999999');
	writeln('159999999999999');
	writeln('169999999999999');
	writeln('179999999999999');
	writeln('189999999999999');
	writeln('199999999999999');
	writeln('209999999999999');
	writeln('219999999999999');
	writeln('229999999999999');
	writeln('239999999999999');
	writeln('249999999999999');
	writeln('259999999999999');
	writeln('269999999999999');
	writeln('279999999999999');
	writeln('289999999999999');
	writeln('299999999999999');
	writeln('309999999999999');
	writeln('319999999999999');
	writeln('329999999999999');
	writeln('339999999999999');
	writeln('349999999999999');
	writeln('359999999999999');
	writeln('369999999999999');
	writeln('379999999999999');
	writeln('389999999999999');
	writeln('399999999999999');
	writeln('409999999999999');
	writeln('419999999999999');
	writeln('429999999999999');
	writeln('439999999999999');
	writeln('449999999999999');
	writeln('459999999999999');
	writeln('469999999999999');
	writeln('479999999999999');
	writeln('489999999999999');
	writeln('499999999999999');
	writeln('509999999999999');
	writeln('519999999999999');
	writeln('529999999999999');
	writeln('539999999999999');
	writeln('549999999999999');
	writeln('559999999999999');
	writeln('569999999999999');
	writeln('579999999999999');
	writeln('589999999999999');
	writeln('599999999999999');
	writeln('609999999999999');
	writeln('619999999999999');
	writeln('629999999999999');
	writeln('639999999999999');
	writeln('649999999999999');
	writeln('659999999999999');
	writeln('669999999999999');
	writeln('679999999999999');
	writeln('689999999999999');
	writeln('699999999999999');
	writeln('709999999999999');
	writeln('719999999999999');
	writeln('729999999999999');
	writeln('739999999999999');
	writeln('749999999999999');
	writeln('759999999999999');
	writeln('769999999999999');
	writeln('779999999999999');
	writeln('789999999999999');
	writeln('799999999999999');
	writeln('809999999999999');
	writeln('819999999999999');
	writeln('829999999999999');
	writeln('839999999999999');
	writeln('849999999999999');
	writeln('859999999999999');
	writeln('869999999999999');
	writeln('879999999999999');
	writeln('889999999999999');
	writeln('899999999999999');
	writeln('909999999999999');
	writeln('919999999999999');
	writeln('929999999999999');
	writeln('939999999999999');
	writeln('949999999999999');
	writeln('959999999999999');
	writeln('969999999999999');
	writeln('979999999999999');
	writeln('989999999999999');
	writeln('999999999999999');
end.

Measured memory_bytes: 128