import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static boolean isPrime(long n){ long l=2; while(l<(int)Math.sqrt(n)+1){ if(n%l==0) return false; l++; } return true; } static long getLow(long n){ long l=2; while(l<(int)Math.sqrt(n)+1){ if(n%l==0) return l; else l++; } return 0; } static long longestSequence(long[] a) { long seq=0; for(int i=0;i