For a sequence AAA of length nnn, define f(lo,hi)f(lo, hi)f(lo,hi) as the GCD of AloA_{lo}Alo through AhiA_{hi}Ahi (indices, not values). Count how many distinct values f(lo,hi)f(lo, hi)f(lo,hi) can take.
Multiple test cases. Each starts with n$$(1 \le n \le 100000), then nnn lines each with an element a$$(1 \le a \le 100). Input ends when n=0n = 0n=0.
For each test case, print the number of distinct GCD values on one line.