def otoshidama(M, N): a = N // 1000 b = a // M print(b * 1000) M, N = map(int, input(). split()) otoshidama(M, N)