You are given a sequence of n decimal digits. Split the sequence into one or more contiguous blocks so that every block, read as a decimal number, is divisible by the integer m.
Count how many such splits exist and print the count modulo 109+7. Two splits are different when their boundary positions differ, not when their digits differ. For example, 2|22 and 22|2 are two different splits.