Champernowne Count

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

The nnth Champernowne word is obtained by writing down the first nn positive integers and concatenating them together. For example, the 10th Champernowne word is "12345678910".

Given two positive integers nn and kk, count how many of the first nn Champernowne words are divisible by kk.

입력

The single line of input contains two integers, nn (1n105)(1 \le n \le 10^5) and kk (1k109)(1 \le k \le 10^9).

출력

Output a single integer, which is a count of the first nn Champernowne words divisible by kk.