Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c

#include <stdio.h>
int main(void){
    int cards[128][14]={{0}};
    int i,N;
    
    scanf("%d",&N);
    
    for(i=0;i<N;i++){
        char c;
        int cn;
        scanf("%c",&c);
        scanf("%c %d",&c,&cn);
        cards[c][cn]=1;
    }
    for(i=1;i<=13;i++){
        if(cards['S'][i]==0){
            printf("S %d\n",i);
        }
    }
    for(i=1;i<=13;i++){
        if(cards['H'][i]==0){
            printf("H %d\n",i);
        }
    }
    for(i=1;i<=13;i++){
        if(cards['C'][i]==0){
            printf("C %d\n",i);
        }
    }
    for(i=1;i<=13;i++){
        if(cards['D'][i]==0){
            printf("D %d\n",i);
        }
    }
    return(0);
}



```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%c %d"
.LC3:
	.string	"S %d\n"
.LC4:
	.string	"H %d\n"
.LC5:
	.string	"C %d\n"
.LC6:
	.string	"D %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3104, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-7184(%rbp), %rdx
	movl	$0, %eax
	movl	$896, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-7196(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -7188(%rbp)
	jmp	.L2
.L3:
	leaq	-7197(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-7192(%rbp), %rdx
	leaq	-7197(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-7197(%rbp), %eax
	movsbl	%al, %eax
	movl	-7192(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	$1, -7184(%rbp,%rax,4)
	addl	$1, -7188(%rbp)
.L2:
	movl	-7196(%rbp), %eax
	cmpl	%eax, -7188(%rbp)
	jl	.L3
	movl	$1, -7188(%rbp)
	jmp	.L4
.L6:
	movl	-7188(%rbp), %eax
	cltq
	addq	$1162, %rax
	movl	-7184(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L5
	movl	-7188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L5:
	addl	$1, -7188(%rbp)
.L4:
	cmpl	$13, -7188(%rbp)
	jle	.L6
	movl	$1, -7188(%rbp)
	jmp	.L7
.L9:
	movl	-7188(%rbp), %eax
	cltq
	addq	$1008, %rax
	movl	-7184(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L8
	movl	-7188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L8:
	addl	$1, -7188(%rbp)
.L7:
	cmpl	$13, -7188(%rbp)
	jle	.L9
	movl	$1, -7188(%rbp)
	jmp	.L10
.L12:
	movl	-7188(%rbp), %eax
	cltq
	addq	$938, %rax
	movl	-7184(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L11
	movl	-7188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L11:
	addl	$1, -7188(%rbp)
.L10:
	cmpl	$13, -7188(%rbp)
	jle	.L12
	movl	$1, -7188(%rbp)
	jmp	.L13
.L15:
	movl	-7188(%rbp), %eax
	cltq
	addq	$952, %rax
	movl	-7184(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-7188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	addl	$1, -7188(%rbp)
.L13:
	cmpl	$13, -7188(%rbp)
	jle	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%c %d"
.LC3:
	.string	"S %d\n"
.LC4:
	.string	"H %d\n"
.LC5:
	.string	"C %d\n"
.LC6:
	.string	"D %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3104, %rsp
	.cfi_def_cfa_offset 7248
	movl	$896, %ecx
	movq	%fs:40, %rax
	movq	%rax, 7192(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	8(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r14d, %r14d
	leaq	7(%rsp), %rbx
	leaq	.LC1(%rip), %r13
	leaq	12(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movsbq	7(%rsp), %rdx
	movslq	12(%rsp), %rcx
	leaq	0(,%rdx,8), %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax,2), %rax
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%r14d, 8(%rsp)
	jg	.L3
.L2:
	movl	4668(%rsp), %eax
	testl	%eax, %eax
	je	.L60
.L4:
	movl	4672(%rsp), %eax
	testl	%eax, %eax
	je	.L61
.L5:
	movl	4676(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L62
.L6:
	movl	4680(%rsp), %r13d
	testl	%r13d, %r13d
	je	.L63
.L7:
	movl	4684(%rsp), %r12d
	testl	%r12d, %r12d
	je	.L64
.L8:
	movl	4688(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L65
.L9:
	movl	4692(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L66
.L10:
	movl	4696(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L67
.L11:
	movl	4700(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L68
.L12:
	movl	4704(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L69
.L13:
	movl	4708(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L70
.L14:
	movl	4712(%rsp), %edi
	testl	%edi, %edi
	je	.L71
.L15:
	movl	4716(%rsp), %esi
	testl	%esi, %esi
	je	.L72
.L16:
	movl	4052(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L73
.L17:
	movl	4056(%rsp), %edx
	testl	%edx, %edx
	je	.L74
.L18:
	movl	4060(%rsp), %eax
	testl	%eax, %eax
	je	.L75
.L19:
	movl	4064(%rsp), %eax
	testl	%eax, %eax
	je	.L76
.L20:
	movl	4068(%rsp), %eax
	testl	%eax, %eax
	je	.L77
.L21:
	movl	4072(%rsp), %eax
	testl	%eax, %eax
	je	.L78
.L22:
	movl	4076(%rsp), %eax
	testl	%eax, %eax
	je	.L79
.L23:
	movl	4080(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L80
.L24:
	movl	4084(%rsp), %r13d
	testl	%r13d, %r13d
	je	.L81
.L25:
	movl	4088(%rsp), %r12d
	testl	%r12d, %r12d
	je	.L82
.L26:
	movl	4092(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L83
.L27:
	movl	4096(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L84
.L28:
	movl	4100(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L85
.L29:
	movl	3772(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L86
.L30:
	movl	3776(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L87
.L31:
	movl	3780(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L88
.L32:
	movl	3784(%rsp), %edi
	testl	%edi, %edi
	je	.L89
.L33:
	movl	3788(%rsp), %esi
	testl	%esi, %esi
	je	.L90
.L34:
	movl	3792(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L91
.L35:
	movl	3796(%rsp), %edx
	testl	%edx, %edx
	je	.L92
.L36:
	movl	3800(%rsp), %eax
	testl	%eax, %eax
	je	.L93
.L37:
	movl	3804(%rsp), %eax
	testl	%eax, %eax
	je	.L94
.L38:
	movl	3808(%rsp), %eax
	testl	%eax, %eax
	je	.L95
.L39:
	movl	3812(%rsp), %eax
	testl	%eax, %eax
	je	.L96
.L40:
	movl	3816(%rsp), %eax
	testl	%eax, %eax
	je	.L97
.L41:
	movl	3820(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L98
.L42:
	movl	3828(%rsp), %r13d
	testl	%r13d, %r13d
	je	.L99
.L43:
	movl	3832(%rsp), %r12d
	testl	%r12d, %r12d
	je	.L100
.L44:
	movl	3836(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L101
.L45:
	movl	3840(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L102
.L46:
	movl	3844(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L103
.L47:
	movl	3848(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L104
.L48:
	movl	3852(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L105
.L49:
	movl	3856(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L106
.L50:
	movl	3860(%rsp), %edi
	testl	%edi, %edi
	je	.L107
.L51:
	movl	3864(%rsp), %esi
	testl	%esi, %esi
	je	.L108
.L52:
	movl	3868(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L109
.L53:
	movl	3872(%rsp), %edx
	testl	%edx, %edx
	je	.L110
.L54:
	movl	3876(%rsp), %eax
	testl	%eax, %eax
	je	.L111
.L55:
	movq	7192(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L112
	addq	$7200, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L60:
	.cfi_restore_state
	movl	$1, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L111:
	movl	$13, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L55
.L110:
	movl	$12, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L54
.L109:
	movl	$11, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L53
.L108:
	movl	$10, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L52
.L107:
	movl	$9, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L51
.L106:
	movl	$8, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L50
.L105:
	movl	$7, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L49
.L104:
	movl	$6, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L48
.L103:
	movl	$5, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L47
.L102:
	movl	$4, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L46
.L101:
	movl	$3, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L45
.L100:
	movl	$2, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L44
.L99:
	movl	$1, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L43
.L98:
	movl	$13, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L42
.L97:
	movl	$12, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L41
.L96:
	movl	$11, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L40
.L95:
	movl	$10, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L39
.L94:
	movl	$9, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L38
.L93:
	movl	$8, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L37
.L92:
	movl	$7, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L36
.L91:
	movl	$6, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L35
.L90:
	movl	$5, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L34
.L89:
	movl	$4, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
.L88:
	movl	$3, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L32
.L87:
	movl	$2, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L31
.L86:
	movl	$1, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L30
.L85:
	movl	$13, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L29
.L84:
	movl	$12, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L28
.L83:
	movl	$11, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L27
.L82:
	movl	$10, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L26
.L81:
	movl	$9, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L25
.L80:
	movl	$8, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L24
.L79:
	movl	$7, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L23
.L78:
	movl	$6, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L22
.L77:
	movl	$5, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L21
.L76:
	movl	$4, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L20
.L75:
	movl	$3, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L19
.L74:
	movl	$2, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
.L73:
	movl	$1, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L17
.L72:
	movl	$13, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L16
.L71:
	movl	$12, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L15
.L70:
	movl	$11, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L69:
	movl	$10, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L13
.L68:
	movl	$9, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
.L67:
	movl	$8, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L66:
	movl	$7, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
.L65:
	movl	$6, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L64:
	movl	$5, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L8
.L63:
	movl	$4, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L62:
	movl	$3, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L61:
	movl	$2, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L112:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%c %d"
.LC3:
	.string	"S %d\n"
.LC4:
	.string	"H %d\n"
.LC5:
	.string	"C %d\n"
.LC6:
	.string	"D %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3104, %rsp
	.cfi_def_cfa_offset 7248
	movl	$896, %ecx
	movq	%fs:40, %rax
	movq	%rax, 7192(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	8(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r14d, %r14d
	leaq	7(%rsp), %rbx
	leaq	.LC1(%rip), %r13
	leaq	12(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movsbq	7(%rsp), %rdx
	movslq	12(%rsp), %rcx
	leaq	0(,%rdx,8), %rax
	subq	%rdx, %rax
	leaq	(%rcx,%rax,2), %rax
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%r14d, 8(%rsp)
	jg	.L3
.L2:
	movl	4668(%rsp), %eax
	testl	%eax, %eax
	je	.L60
.L4:
	movl	4672(%rsp), %eax
	testl	%eax, %eax
	je	.L61
.L5:
	movl	4676(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L62
.L6:
	movl	4680(%rsp), %r13d
	testl	%r13d, %r13d
	je	.L63
.L7:
	movl	4684(%rsp), %r12d
	testl	%r12d, %r12d
	je	.L64
.L8:
	movl	4688(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L65
.L9:
	movl	4692(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L66
.L10:
	movl	4696(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L67
.L11:
	movl	4700(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L68
.L12:
	movl	4704(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L69
.L13:
	movl	4708(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L70
.L14:
	movl	4712(%rsp), %edi
	testl	%edi, %edi
	je	.L71
.L15:
	movl	4716(%rsp), %esi
	testl	%esi, %esi
	je	.L72
.L16:
	movl	4052(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L73
.L17:
	movl	4056(%rsp), %edx
	testl	%edx, %edx
	je	.L74
.L18:
	movl	4060(%rsp), %eax
	testl	%eax, %eax
	je	.L75
.L19:
	movl	4064(%rsp), %eax
	testl	%eax, %eax
	je	.L76
.L20:
	movl	4068(%rsp), %eax
	testl	%eax, %eax
	je	.L77
.L21:
	movl	4072(%rsp), %eax
	testl	%eax, %eax
	je	.L78
.L22:
	movl	4076(%rsp), %eax
	testl	%eax, %eax
	je	.L79
.L23:
	movl	4080(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L80
.L24:
	movl	4084(%rsp), %r13d
	testl	%r13d, %r13d
	je	.L81
.L25:
	movl	4088(%rsp), %r12d
	testl	%r12d, %r12d
	je	.L82
.L26:
	movl	4092(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L83
.L27:
	movl	4096(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L84
.L28:
	movl	4100(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L85
.L29:
	movl	3772(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L86
.L30:
	movl	3776(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L87
.L31:
	movl	3780(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L88
.L32:
	movl	3784(%rsp), %edi
	testl	%edi, %edi
	je	.L89
.L33:
	movl	3788(%rsp), %esi
	testl	%esi, %esi
	je	.L90
.L34:
	movl	3792(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L91
.L35:
	movl	3796(%rsp), %edx
	testl	%edx, %edx
	je	.L92
.L36:
	movl	3800(%rsp), %eax
	testl	%eax, %eax
	je	.L93
.L37:
	movl	3804(%rsp), %eax
	testl	%eax, %eax
	je	.L94
.L38:
	movl	3808(%rsp), %eax
	testl	%eax, %eax
	je	.L95
.L39:
	movl	3812(%rsp), %eax
	testl	%eax, %eax
	je	.L96
.L40:
	movl	3816(%rsp), %eax
	testl	%eax, %eax
	je	.L97
.L41:
	movl	3820(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L98
.L42:
	movl	3828(%rsp), %r13d
	testl	%r13d, %r13d
	je	.L99
.L43:
	movl	3832(%rsp), %r12d
	testl	%r12d, %r12d
	je	.L100
.L44:
	movl	3836(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L101
.L45:
	movl	3840(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L102
.L46:
	movl	3844(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L103
.L47:
	movl	3848(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L104
.L48:
	movl	3852(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L105
.L49:
	movl	3856(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L106
.L50:
	movl	3860(%rsp), %edi
	testl	%edi, %edi
	je	.L107
.L51:
	movl	3864(%rsp), %esi
	testl	%esi, %esi
	je	.L108
.L52:
	movl	3868(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L109
.L53:
	movl	3872(%rsp), %edx
	testl	%edx, %edx
	je	.L110
.L54:
	movl	3876(%rsp), %eax
	testl	%eax, %eax
	je	.L111
.L55:
	movq	7192(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L112
	addq	$7200, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L60:
	.cfi_restore_state
	movl	$1, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L111:
	movl	$13, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L55
.L110:
	movl	$12, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L54
.L109:
	movl	$11, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L53
.L108:
	movl	$10, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L52
.L107:
	movl	$9, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L51
.L106:
	movl	$8, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L50
.L105:
	movl	$7, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L49
.L104:
	movl	$6, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L48
.L103:
	movl	$5, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L47
.L102:
	movl	$4, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L46
.L101:
	movl	$3, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L45
.L100:
	movl	$2, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L44
.L99:
	movl	$1, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L43
.L98:
	movl	$13, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L42
.L97:
	movl	$12, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L41
.L96:
	movl	$11, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L40
.L95:
	movl	$10, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L39
.L94:
	movl	$9, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L38
.L93:
	movl	$8, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L37
.L92:
	movl	$7, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L36
.L91:
	movl	$6, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L35
.L90:
	movl	$5, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L34
.L89:
	movl	$4, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
.L88:
	movl	$3, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L32
.L87:
	movl	$2, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L31
.L86:
	movl	$1, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L30
.L85:
	movl	$13, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L29
.L84:
	movl	$12, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L28
.L83:
	movl	$11, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L27
.L82:
	movl	$10, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L26
.L81:
	movl	$9, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L25
.L80:
	movl	$8, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L24
.L79:
	movl	$7, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L23
.L78:
	movl	$6, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L22
.L77:
	movl	$5, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L21
.L76:
	movl	$4, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L20
.L75:
	movl	$3, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L19
.L74:
	movl	$2, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
.L73:
	movl	$1, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L17
.L72:
	movl	$13, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L16
.L71:
	movl	$12, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L15
.L70:
	movl	$11, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L69:
	movl	$10, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L13
.L68:
	movl	$9, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
.L67:
	movl	$8, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L66:
	movl	$7, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
.L65:
	movl	$6, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L64:
	movl	$5, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L8
.L63:
	movl	$4, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L62:
	movl	$3, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L61:
	movl	$2, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L112:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <stdio.h>
int main(void){
    int cards[128][14]={{0}};
    int i,N;
    
    scanf("%d",&N);
    
    for(i=0;i<N;i++){
        char c;
        int cn;
        scanf("%c",&c);
        scanf("%c %d",&c,&cn);
        cards[c][cn]=1;
    }
    for(i=1;i<=13;i++){
        if(cards['S'][i]==0){
            printf("S %d\n",i);
        }
    }
    for(i=1;i<=13;i++){
        if(cards['H'][i]==0){
            printf("H %d\n",i);
        }
    }
    for(i=1;i<=13;i++){
        if(cards['C'][i]==0){
            printf("C %d\n",i);
        }
    }
    for(i=1;i<=13;i++){
        if(cards['D'][i]==0){
            printf("D %d\n",i);
        }
    }
    return(0);
}




47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 7
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 12
S 13
H 1
H 3
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 5
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 7
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 8
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 3
H 7
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 3
H 7
S 2
S 3
S 1
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 1
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 7
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 5
H 8
H 9
H 10
H 11
H 3
H 7
S 2
S 3
S 1
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 12
S 13
H 2
H 3
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 5
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 3
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 1
S 11
S 12
S 13
H 1
H 3
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 5
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13

S 1
H 3
H 5
C 12
D 8
 S 1
H 2
H 7
C 12
D 8
 S 1
H 3
H 5
C 12
D 6
 S 1
H 4
H 5
C 12
D 8
 S 4
H 4
H 5
C 12
D 8
 S 12
H 3
H 5
C 12
D 8
 S 4
H 4
H 6
C 12
D 8
 S 1
H 1
H 7
C 12
D 8
 S 1
H 5
H 7
C 12
D 8
 S 10
H 2
H 7
C 12
D 8

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c

#include <stdio.h>
int main(void){
    int cards[128][14]={{0}};
    int i,N;
    
    scanf("%d",&N);
    
    for(i=0;i<N;i++){
        char c;
        int cn;
        scanf("%c",&c);
        scanf("%c %d",&c,&cn);
        cards[c][cn]=1;
    }
    for(i=1;i<=13;i++){
        if(cards['S'][i]==0){
            printf("S %d\n",i);
        }
    }
    for(i=1;i<=13;i++){
        if(cards['H'][i]==0){
            printf("H %d\n",i);
        }
    }
    for(i=1;i<=13;i++){
        if(cards['C'][i]==0){
            printf("C %d\n",i);
        }
    }
    for(i=1;i<=13;i++){
        if(cards['D'][i]==0){
            printf("D %d\n",i);
        }
    }
    return(0);
}



```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%c %d"
.LC3:
	.string	"S %d\n"
.LC4:
	.string	"H %d\n"
.LC5:
	.string	"C %d\n"
.LC6:
	.string	"D %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3104, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-7184(%rbp), %rdx
	movl	$0, %eax
	movl	$896, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-7196(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -7188(%rbp)
	jmp	.L2
.L3:
	leaq	-7197(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-7192(%rbp), %rdx
	leaq	-7197(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-7197(%rbp), %eax
	movsbl	%al, %eax
	movl	-7192(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	$1, -7184(%rbp,%rax,4)
	addl	$1, -7188(%rbp)
.L2:
	movl	-7196(%rbp), %eax
	cmpl	%eax, -7188(%rbp)
	jl	.L3
	movl	$1, -7188(%rbp)
	jmp	.L4
.L6:
	movl	-7188(%rbp), %eax
	cltq
	addq	$1162, %rax
	movl	-7184(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L5
	movl	-7188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L5:
	addl	$1, -7188(%rbp)
.L4:
	cmpl	$13, -7188(%rbp)
	jle	.L6
	movl	$1, -7188(%rbp)
	jmp	.L7
.L9:
	movl	-7188(%rbp), %eax
	cltq
	addq	$1008, %rax
	movl	-7184(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L8
	movl	-7188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L8:
	addl	$1, -7188(%rbp)
.L7:
	cmpl	$13, -7188(%rbp)
	jle	.L9
	movl	$1, -7188(%rbp)
	jmp	.L10
.L12:
	movl	-7188(%rbp), %eax
	cltq
	addq	$938, %rax
	movl	-7184(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L11
	movl	-7188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L11:
	addl	$1, -7188(%rbp)
.L10:
	cmpl	$13, -7188(%rbp)
	jle	.L12
	movl	$1, -7188(%rbp)
	jmp	.L13
.L15:
	movl	-7188(%rbp), %eax
	cltq
	addq	$952, %rax
	movl	-7184(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-7188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	addl	$1, -7188(%rbp)
.L13:
	cmpl	$13, -7188(%rbp)
	jle	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%c %d"
.LC3:
	.string	"S %d\n"
.LC4:
	.string	"H %d\n"
.LC5:
	.string	"C %d\n"
.LC6:
	.string	"D %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3104, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-7184(%rbp), %rdx
	movl	$0, %eax
	movl	$896, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-7196(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -7188(%rbp)
	jmp	.L2
.L3:
	leaq	-7197(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-7192(%rbp), %rdx
	leaq	-7197(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-7197(%rbp), %eax
	movsbl	%al, %eax
	movl	-7192(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	$1, -7184(%rbp,%rax,4)
	addl	$1, -7188(%rbp)
.L2:
	movl	-7196(%rbp), %eax
	cmpl	%eax, -7188(%rbp)
	jl	.L3
	movl	$1, -7188(%rbp)
	jmp	.L4
.L6:
	movl	-7188(%rbp), %eax
	cltq
	addq	$1162, %rax
	movl	-7184(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L5
	movl	-7188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L5:
	addl	$1, -7188(%rbp)
.L4:
	cmpl	$13, -7188(%rbp)
	jle	.L6
	movl	$1, -7188(%rbp)
	jmp	.L7
.L9:
	movl	-7188(%rbp), %eax
	cltq
	addq	$1008, %rax
	movl	-7184(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L8
	movl	-7188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L8:
	addl	$1, -7188(%rbp)
.L7:
	cmpl	$13, -7188(%rbp)
	jle	.L9
	movl	$1, -7188(%rbp)
	jmp	.L10
.L12:
	movl	-7188(%rbp), %eax
	cltq
	addq	$938, %rax
	movl	-7184(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L11
	movl	-7188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L11:
	addl	$1, -7188(%rbp)
.L10:
	cmpl	$13, -7188(%rbp)
	jle	.L12
	movl	$1, -7188(%rbp)
	jmp	.L13
.L15:
	movl	-7188(%rbp), %eax
	cltq
	addq	$952, %rax
	movl	-7184(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-7188(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	addl	$1, -7188(%rbp)
.L13:
	cmpl	$13, -7188(%rbp)
	jle	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
