import java.util.Scanner; public class Card{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); int n,m,temp,top; n = sc.nextInt(); m = sc.nextInt(); int[] deck = new int[n]; for(int i = 0;i