Given an array A of length N . Find the length of longest subarray which forms an arithmetic progression .
For example if the array is then subarray forms an A.P. with common difference 2 having maximum length 3 .
INPUT
First line of input contains one integer N number of elements in array.
Second line contains N elements .
OUTPUT
Print the length of longest arithmetic subarray .
CONSTRAINTS