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