CF111B Petya and Divisors

Description

Little Petya loves looking for numbers' divisors. One day Petya came across the following problem: You are given $ n $ queries in the form " $ x_{i} $ $ y_{i} $ ". For each query Petya should count how many divisors of number $ x_{i} $ divide none of the numbers $ x_{i-yi},x_{i-yi}+1,...,x_{i-1} $ . Help him.

Input Format

The first line contains an integer $ n $ ( $ 1

Output Format

For each query print the answer on a single line: the number of positive integers $ k $ such that ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF111B/e5195dc37be0c06af6e97f60e5c08b96dc97419b.png)

Explanation/Hint

Let's write out the divisors that give answers for the first 5 queries: 1\) 1, 2, 4 2\) 3 3\) 5 4\) 2, 6 5\) 9, 18