using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace cjt2
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = 20000;
            int[] t = new int[10];
            int i = 0;
            int sum = 0;
            Random ra = new Random();
        beg:
            t[i] = ra.Next(1000, 3000);
            sum += t[i];
            if (n - sum > (10 - i) * 1000 && n - sum < (10 - i) * 3000)
            {
                i++;
                if (i >= 10) goto end;
                goto beg;
            }
            else
            {
                sum -= t[i];
                goto beg;
            }
        end:
            t[9] = n - sum+t[9];
            for (i = 0; i < 10; i++)
            {
                Console.WriteLine("{0}\n",t[i]);
            }

        }
    }
}