Karlsson-on-the-Roof#4489

Karlsson-on-the-Roof

1 second
64 megabytes
Very easy

In this problem, Karlson has promised Kid more than he can do again. You'll have to help him: write a program that will answer Kid's questions.

Input

The first line contains a single number of length (1 \leq N \leq 10^6) — the number given to Kid. Then comes the number (1 \leq M \leq 10^5) — the number of queries. The following lines contain three numbers each — the type of query, , and . Each query with number means you need to write out all digits from positions to inclusive (positions are numbered starting from one) and check if the resulting number is divisible by ; a query with number means that the digit at position is now .

Output

For each query of type , output "Yes" if the number is divisible by , and "No" otherwise.

Examples

Example 1

Loading
Loading