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

namespace yukicoderTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string N = Console.ReadLine();
            string M = Console.ReadLine();
            int yosan = int.Parse(N);
            int num = int.Parse(M);
            int ans = 0;
            if (num != 0)
            {
                 ans = yosan / num;
            }
            string[] ansstr = new string[ans.ToString().Length];
            for(int i=0;i<ansstr.Length;i++)
            {
                ansstr[i] = ans.ToString().Substring(i, 1);
            }
            if (ansstr.Length > 3)
            {
                for (int i = 0; i < ansstr.Length - 3; i++)
                {
                    Console.WriteLine(ansstr[i]+"000");
                }
            }
            else
            {
                Console.WriteLine("0");
            }
        }
        
    }
}