import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static long longestSequence(long[] a) { long c=0,d=0,q=0,l=0,z=0,k=0,b=0; for(int i=0;i