#include int main(void) { int pull_out,card[50],save; int i,j,N,M; scanf("%d %d",&N,&M); for(i=0; i