import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.NoSuchElementException; public class Main implements Runnable { public static void main(String[] args) { new Main().run(); } public void run() { solve(); } void solve() { FastScanner sc=new FastScanner(); PrintWriter pw=new PrintWriter(System.out); int zero=0; int N=sc.nextInt(); long[] A=new long[N]; ArrayList list=new ArrayList<>(); for (int i=0;i