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 = yosan / num;
            if (ans < 1000)
            {
                Console.WriteLine("0");
            }
            else
            {
                string ansstr = ans.ToString().Substring(0,1);

                while (ansstr.Length != ans.ToString().Length)
                {
                    ansstr = ansstr + "0";
                }  
                
                Console.WriteLine(ansstr);
            }
        }
        
    }
}