Little Q is very sleepy, and he really needs some coffee to make him awake. At this time, Little L brings a pot to Little Q, and he states the pot as follows.
For a prime number , if and , we say .
The pot is very special that it can make everyone awake immediately.
Now Little L provides integers to Little Q, each of which is initially. After that, Little L shows types of queries:
MULTIPLY l r x: For every (), multiply by ().
MAX l r: Calculate the value of
where is prime.
Now you need to perform queries of these two types of queries described above.
If you perform a “MULTIPLY” query, you don't need to output anything.
If you perform a “MAX” query, you need to output a line like ANSWER y, where the value you've calculated.
输入格式
The first line contains two integers and , the number of integers and the number of queries.
Each of the next lines contains one type of query described above.
输出格式
For each “MAX” query, output one line in the format of ANSWER y, where the value you have calculated.
If and are non-zero integers, or more generally, non-zero elements of an integral domain, it is said that divides if there exists an integer , or an element of the integral domain, such that , and this is written as .