Given a sequence a1…an.
You need to find a subsequence ab1,ab2,…,abm(b1<b2<⋯<bm) and an integer k which satifies abi+1=k⋅abi for all 1≤i<m.
Your goal is to maximize m.
Input
First line contains an integer n.
Second line contains n integers, representing the sequence a1…an.
Output
An integer representing the maximum value of m.
Constraints
1≤n≤105
−105≤ai≤105
1,−2,4 and 3,0,0 are two possible subsequences.