N = int(input()) M = int(input()) if N//M >= 1000 : print(N//M) else : print(0)