You are given an array A of length N. A pair (a, b) is considered good if the following criterion is fulfilled:
Consider the decimal representation of a and b. a has digits a1,a2,...,ak1 and b has digits b1,b2,...,bk1. (a, b) is good only if there is no index y (1≤y≤k) such that ay and by are non-zero elements.
You are required to process Q queries where each having one of the following forms:
0ix: Change the ith index to x in the array
1lr: Consider all the pairs (i, j) such that l≤i≤j≤r such that (ai, aj) is a good pair and add ai∏aj to the answer.
Note: As the answer can be large, print answer modulo 109+7.
Input format
Output format
For each query of type 1, print the required answer in a separate line.
-