There N people in your city. The jth person contains Aj health point. You are trying to make these people walk in your locality. You walk for M days. On the ith day, every walk decreases Bi health points of the person you are walking with. Also, on the ith day, you can only walk with the jth person if the person is still healthy and j is a multiple of i. You can walk with as many people as you can but you can walk with a specific person only once in a day.
A person becomes unhealthy if their health point becomes less than or equal to 0. At the end of each day, their health points are restored to their original level if they are not unhealthy already.
Your task is to determine the day in which the ith person becomes unhealthy or will remain healthy.
Input format
Output format
Print N lines where the ith of these lines contain a single integer, denoting the day when the ith person becomes unhealthy. Otherwise, print −1 if the ith person never becomes unhealthy.
Constraints
1≤T≤3
1≤N,M≤106
1≤Ai,Bi≤109
In the first sample,
1st and 2nd people become unhealthy in the 1st day.
3rd and 6th person becomes unhealthy in the 3rd day.
5th person becomes unhealthy in the 5th day.
4th person remains healthy.