public static long[] ls(int n) throws Exception {
   for (int i = 1; i <= n; i++) templongs[i] = in.nextLong();
   return templongs;
 }
 public static long l() throws Exception {
   return in.nextLong();
 }