Given a one-indexed array of elements, support the following operations:
1 k v
Add to all elements with indices that are a multiple of . is prime.2 i
Output the value of the element at index .
There will be of these operations.
Input Specification
The first line will contain integers, .
The next lines will each contain a valid operation as described above.
Output Specification
For each type operation, output the value as defined above.
Sample Input
6 4
1 2 2
2 4
1 3 1
2 6
Sample Output
2
3
Comments