import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class codesprint12_1 { public static int powerN(int base, int n) { int result = 1; for (int i = 0; i < n; i++) { result *= base; } return result; } static long longestSequence(int n,long[] a) { long y=0; for(int i=0; i