import java.util.Scanner; public class q3v2 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); sc.nextLine(); int k=0; while(k