# -*- coding:utf-8 -*- N = input() M = input() def otoshidama(N, M): dama = N / M if dama < 1000: dama = 0 return dama print int(otoshidama(N, M))