import java.util.*;public class BJ15666 { static int N, M; static int[] Narr; static List sequence; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); M = sc.nextInt(); Narr = new int[N]; sequence = new ArrayList(); // 입력받기 for (int i = 0; i uniqueNumbers = new TreeSet(); for (int nu..