import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class Main258 { public static void main(String[] args){ new Main258(); } public Main258(){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] v = new int[n]; for(int i=0;i l = new ArrayList<>(); int cur = n; while(cur>1){ while(dp[cur][mindex]==dp[cur-1][mindex]){ cur--; } if(cur<=1) break; for(int i=0;i