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(){
 
  int card[4][13]={};
  int n, num, i, j;
  char m;
 
  scanf("%d", &n);
  for(i=0;i<n;i++){
    scanf(" %c %d", &m, &num);
    if(m=='S') card[0][num-1]=1;
    else if(m=='H') card[1][num-1]=1;
    else if(m=='C') card[2][num-1]=1;
    else if(m=='D') card[3][num-1]=1;
  }
 
  for(i=0;i<4;i++){
    for(j=0;j<13;j++){
      if(i==0&&card[i][j]==0) printf("S %d\n", j+1);
      else if(i==1&&card[i][j]==0) printf("H %d\n", j+1);
      else if(i==2&&card[i][j]==0) printf("C %d\n", j+1);
      else if(i==3&&card[i][j]==0) printf("D %d\n", j+1);
    }
  }
 
   
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %c %d"
.LC2:
	.string	"S %d\n"
.LC3:
	.string	"H %d\n"
.LC4:
	.string	"C %d\n"
.LC5:
	.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	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-224(%rbp), %rdx
	movl	$0, %eax
	movl	$26, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -232(%rbp)
	jmp	.L2
.L7:
	leaq	-236(%rbp), %rdx
	leaq	-241(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-241(%rbp), %eax
	cmpb	$83, %al
	jne	.L3
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L4
.L3:
	movzbl	-241(%rbp), %eax
	cmpb	$72, %al
	jne	.L5
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$13, %rax
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L4
.L5:
	movzbl	-241(%rbp), %eax
	cmpb	$67, %al
	jne	.L6
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$26, %rax
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L4
.L6:
	movzbl	-241(%rbp), %eax
	cmpb	$68, %al
	jne	.L4
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$39, %rax
	movl	$1, -224(%rbp,%rax,4)
.L4:
	addl	$1, -232(%rbp)
.L2:
	movl	-240(%rbp), %eax
	cmpl	%eax, -232(%rbp)
	jl	.L7
	movl	$0, -232(%rbp)
	jmp	.L8
.L15:
	movl	$0, -228(%rbp)
	jmp	.L9
.L14:
	cmpl	$0, -232(%rbp)
	jne	.L10
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L10:
	cmpl	$1, -232(%rbp)
	jne	.L12
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L12
	movl	-228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L12:
	cmpl	$2, -232(%rbp)
	jne	.L13
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L13
	movl	-228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L13:
	cmpl	$3, -232(%rbp)
	jne	.L11
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L11
	movl	-228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L11:
	addl	$1, -228(%rbp)
.L9:
	cmpl	$12, -228(%rbp)
	jle	.L14
	addl	$1, -232(%rbp)
.L8:
	cmpl	$3, -232(%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 %d"
.LC2:
	.string	"S %d\n"
.LC3:
	.string	"H %d\n"
.LC4:
	.string	"C %d\n"
.LC5:
	.string	"D %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$26, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$248, %rsp
	.cfi_def_cfa_offset 288
	movq	%fs:40, %rax
	movq	%rax, 232(%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), %ecx
	testl	%ecx, %ecx
	jle	.L8
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r13
	leaq	7(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$72, %al
	je	.L75
	cmpb	$67, %al
	je	.L76
	cmpb	$68, %al
	jne	.L5
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 172(%rsp,%rax,4)
	.p2align 4,,10
	.p2align 3
.L5:
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jle	.L8
.L2:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	7(%rsp), %eax
	cmpb	$83, %al
	jne	.L4
	movl	12(%rsp), %eax
	addl	$1, %ebx
	subl	$1, %eax
	cltq
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, 8(%rsp)
	jg	.L2
.L8:
	xorl	%ebx, %ebx
	leaq	.LC4(%rip), %r13
	leaq	.LC3(%rip), %r12
	leaq	.LC2(%rip), %rbp
.L3:
	testl	%ebx, %ebx
	je	.L77
	cmpl	$3, %ebx
	jne	.L78
	movl	172(%rsp), %edx
	testl	%edx, %edx
	je	.L79
.L55:
	movl	176(%rsp), %eax
	testl	%eax, %eax
	je	.L80
.L56:
	cmpl	$0, 180(%rsp)
	je	.L81
.L57:
	cmpl	$0, 184(%rsp)
	je	.L82
.L58:
	cmpl	$0, 188(%rsp)
	je	.L83
.L59:
	cmpl	$0, 192(%rsp)
	je	.L84
.L60:
	cmpl	$0, 196(%rsp)
	je	.L85
.L61:
	cmpl	$0, 200(%rsp)
	je	.L86
.L62:
	cmpl	$0, 204(%rsp)
	je	.L87
.L63:
	cmpl	$0, 208(%rsp)
	je	.L88
.L64:
	cmpl	$0, 212(%rsp)
	je	.L89
.L65:
	cmpl	$0, 216(%rsp)
	je	.L90
.L66:
	cmpl	$0, 220(%rsp)
	je	.L67
.L68:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L91
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L75:
	.cfi_restore_state
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 68(%rsp,%rax,4)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L76:
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 120(%rsp,%rax,4)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L77:
	movl	16(%rsp), %edx
	testl	%edx, %edx
	je	.L92
.L11:
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L93
.L12:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L94
.L13:
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L95
.L14:
	movl	32(%rsp), %eax
	testl	%eax, %eax
	je	.L96
.L15:
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L97
.L16:
	movl	40(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L98
.L17:
	movl	44(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L99
.L18:
	movl	48(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L100
.L19:
	movl	52(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L101
.L20:
	movl	56(%rsp), %edi
	testl	%edi, %edi
	je	.L102
.L21:
	movl	60(%rsp), %esi
	testl	%esi, %esi
	je	.L103
.L22:
	movl	64(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L104
.L9:
	addl	$1, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L78:
	cmpl	$2, %ebx
	je	.L26
	cmpl	$0, 68(%rsp)
	je	.L105
.L27:
	cmpl	$0, 72(%rsp)
	je	.L106
.L28:
	cmpl	$0, 76(%rsp)
	je	.L107
.L29:
	cmpl	$0, 80(%rsp)
	je	.L108
.L30:
	cmpl	$0, 84(%rsp)
	je	.L109
.L31:
	cmpl	$0, 88(%rsp)
	je	.L110
.L32:
	cmpl	$0, 92(%rsp)
	je	.L111
.L33:
	cmpl	$0, 96(%rsp)
	je	.L112
.L34:
	cmpl	$0, 100(%rsp)
	je	.L113
.L35:
	cmpl	$0, 104(%rsp)
	je	.L114
.L36:
	cmpl	$0, 108(%rsp)
	je	.L115
.L37:
	cmpl	$0, 112(%rsp)
	je	.L116
.L38:
	cmpl	$0, 116(%rsp)
	jne	.L9
	movl	$13, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L26:
	cmpl	$0, 120(%rsp)
	je	.L117
.L41:
	cmpl	$0, 124(%rsp)
	je	.L118
.L42:
	cmpl	$0, 128(%rsp)
	je	.L119
.L43:
	cmpl	$0, 132(%rsp)
	je	.L120
.L44:
	cmpl	$0, 136(%rsp)
	je	.L121
.L45:
	cmpl	$0, 140(%rsp)
	je	.L122
.L46:
	cmpl	$0, 144(%rsp)
	je	.L123
.L47:
	cmpl	$0, 148(%rsp)
	je	.L124
.L48:
	cmpl	$0, 152(%rsp)
	je	.L125
.L49:
	cmpl	$0, 156(%rsp)
	je	.L126
.L50:
	cmpl	$0, 160(%rsp)
	je	.L127
.L51:
	cmpl	$0, 164(%rsp)
	je	.L128
.L52:
	cmpl	$0, 168(%rsp)
	jne	.L9
	movl	$13, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L92:
	movl	$1, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L93:
	movl	$2, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
.L94:
	movl	$3, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L13
.L95:
	movl	$4, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L96:
	movl	$5, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L15
.L97:
	movl	$6, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L16
.L98:
	movl	$7, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L17
.L99:
	movl	$8, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
.L100:
	movl	$9, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L19
.L101:
	movl	$10, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L20
.L102:
	movl	$11, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L21
.L104:
	movl	$13, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L103:
	movl	$12, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L22
.L79:
	movl	$1, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L55
.L80:
	movl	$2, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L56
.L81:
	movl	$3, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L57
.L82:
	movl	$4, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L58
.L83:
	movl	$5, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L59
.L84:
	movl	$6, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L60
.L118:
	movl	$2, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L42
.L119:
	movl	$3, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L43
.L117:
	movl	$1, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L41
.L122:
	movl	$6, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L46
.L123:
	movl	$7, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L47
.L120:
	movl	$4, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L44
.L121:
	movl	$5, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L45
.L124:
	movl	$8, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L48
.L125:
	movl	$9, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L49
.L128:
	movl	$12, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L52
.L126:
	movl	$10, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L50
.L127:
	movl	$11, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L51
.L105:
	movl	$1, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L27
.L85:
	movl	$7, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L61
.L88:
	movl	$10, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L64
.L89:
	movl	$11, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L65
.L86:
	movl	$8, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L62
.L87:
	movl	$9, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L63
.L90:
	movl	$12, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L66
.L67:
	movl	$13, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L68
.L116:
	movl	$12, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L38
.L115:
	movl	$11, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L37
.L114:
	movl	$10, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L36
.L113:
	movl	$9, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L35
.L106:
	movl	$2, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L28
.L107:
	movl	$3, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L29
.L108:
	movl	$4, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L30
.L109:
	movl	$5, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L31
.L110:
	movl	$6, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L32
.L112:
	movl	$8, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L34
.L111:
	movl	$7, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
.L91:
	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 %d"
.LC2:
	.string	"S %d\n"
.LC3:
	.string	"H %d\n"
.LC4:
	.string	"C %d\n"
.LC5:
	.string	"D %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$26, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$248, %rsp
	.cfi_def_cfa_offset 288
	movq	%fs:40, %rax
	movq	%rax, 232(%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), %ecx
	testl	%ecx, %ecx
	jle	.L8
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r13
	leaq	7(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$72, %al
	je	.L75
	cmpb	$67, %al
	je	.L76
	cmpb	$68, %al
	jne	.L5
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 172(%rsp,%rax,4)
	.p2align 4,,10
	.p2align 3
.L5:
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jle	.L8
.L2:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	7(%rsp), %eax
	cmpb	$83, %al
	jne	.L4
	movl	12(%rsp), %eax
	addl	$1, %ebx
	subl	$1, %eax
	cltq
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%ebx, 8(%rsp)
	jg	.L2
.L8:
	xorl	%ebx, %ebx
	leaq	.LC4(%rip), %r13
	leaq	.LC3(%rip), %r12
	leaq	.LC2(%rip), %rbp
.L3:
	testl	%ebx, %ebx
	je	.L77
	cmpl	$3, %ebx
	jne	.L78
	movl	172(%rsp), %edx
	testl	%edx, %edx
	je	.L79
.L55:
	movl	176(%rsp), %eax
	testl	%eax, %eax
	je	.L80
.L56:
	cmpl	$0, 180(%rsp)
	je	.L81
.L57:
	cmpl	$0, 184(%rsp)
	je	.L82
.L58:
	cmpl	$0, 188(%rsp)
	je	.L83
.L59:
	cmpl	$0, 192(%rsp)
	je	.L84
.L60:
	cmpl	$0, 196(%rsp)
	je	.L85
.L61:
	cmpl	$0, 200(%rsp)
	je	.L86
.L62:
	cmpl	$0, 204(%rsp)
	je	.L87
.L63:
	cmpl	$0, 208(%rsp)
	je	.L88
.L64:
	cmpl	$0, 212(%rsp)
	je	.L89
.L65:
	cmpl	$0, 216(%rsp)
	je	.L90
.L66:
	cmpl	$0, 220(%rsp)
	je	.L67
.L68:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L91
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L75:
	.cfi_restore_state
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 68(%rsp,%rax,4)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L76:
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 120(%rsp,%rax,4)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L77:
	movl	16(%rsp), %edx
	testl	%edx, %edx
	je	.L92
.L11:
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L93
.L12:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L94
.L13:
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L95
.L14:
	movl	32(%rsp), %eax
	testl	%eax, %eax
	je	.L96
.L15:
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L97
.L16:
	movl	40(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L98
.L17:
	movl	44(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L99
.L18:
	movl	48(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L100
.L19:
	movl	52(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L101
.L20:
	movl	56(%rsp), %edi
	testl	%edi, %edi
	je	.L102
.L21:
	movl	60(%rsp), %esi
	testl	%esi, %esi
	je	.L103
.L22:
	movl	64(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L104
.L9:
	addl	$1, %ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L78:
	cmpl	$2, %ebx
	je	.L26
	cmpl	$0, 68(%rsp)
	je	.L105
.L27:
	cmpl	$0, 72(%rsp)
	je	.L106
.L28:
	cmpl	$0, 76(%rsp)
	je	.L107
.L29:
	cmpl	$0, 80(%rsp)
	je	.L108
.L30:
	cmpl	$0, 84(%rsp)
	je	.L109
.L31:
	cmpl	$0, 88(%rsp)
	je	.L110
.L32:
	cmpl	$0, 92(%rsp)
	je	.L111
.L33:
	cmpl	$0, 96(%rsp)
	je	.L112
.L34:
	cmpl	$0, 100(%rsp)
	je	.L113
.L35:
	cmpl	$0, 104(%rsp)
	je	.L114
.L36:
	cmpl	$0, 108(%rsp)
	je	.L115
.L37:
	cmpl	$0, 112(%rsp)
	je	.L116
.L38:
	cmpl	$0, 116(%rsp)
	jne	.L9
	movl	$13, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L26:
	cmpl	$0, 120(%rsp)
	je	.L117
.L41:
	cmpl	$0, 124(%rsp)
	je	.L118
.L42:
	cmpl	$0, 128(%rsp)
	je	.L119
.L43:
	cmpl	$0, 132(%rsp)
	je	.L120
.L44:
	cmpl	$0, 136(%rsp)
	je	.L121
.L45:
	cmpl	$0, 140(%rsp)
	je	.L122
.L46:
	cmpl	$0, 144(%rsp)
	je	.L123
.L47:
	cmpl	$0, 148(%rsp)
	je	.L124
.L48:
	cmpl	$0, 152(%rsp)
	je	.L125
.L49:
	cmpl	$0, 156(%rsp)
	je	.L126
.L50:
	cmpl	$0, 160(%rsp)
	je	.L127
.L51:
	cmpl	$0, 164(%rsp)
	je	.L128
.L52:
	cmpl	$0, 168(%rsp)
	jne	.L9
	movl	$13, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L92:
	movl	$1, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L93:
	movl	$2, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
.L94:
	movl	$3, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L13
.L95:
	movl	$4, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L96:
	movl	$5, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L15
.L97:
	movl	$6, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L16
.L98:
	movl	$7, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L17
.L99:
	movl	$8, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
.L100:
	movl	$9, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L19
.L101:
	movl	$10, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L20
.L102:
	movl	$11, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L21
.L104:
	movl	$13, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L103:
	movl	$12, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L22
.L79:
	movl	$1, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L55
.L80:
	movl	$2, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L56
.L81:
	movl	$3, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L57
.L82:
	movl	$4, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L58
.L83:
	movl	$5, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L59
.L84:
	movl	$6, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L60
.L118:
	movl	$2, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L42
.L119:
	movl	$3, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L43
.L117:
	movl	$1, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L41
.L122:
	movl	$6, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L46
.L123:
	movl	$7, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L47
.L120:
	movl	$4, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L44
.L121:
	movl	$5, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L45
.L124:
	movl	$8, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L48
.L125:
	movl	$9, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L49
.L128:
	movl	$12, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L52
.L126:
	movl	$10, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L50
.L127:
	movl	$11, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L51
.L105:
	movl	$1, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L27
.L85:
	movl	$7, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L61
.L88:
	movl	$10, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L64
.L89:
	movl	$11, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L65
.L86:
	movl	$8, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L62
.L87:
	movl	$9, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L63
.L90:
	movl	$12, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L66
.L67:
	movl	$13, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L68
.L116:
	movl	$12, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L38
.L115:
	movl	$11, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L37
.L114:
	movl	$10, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L36
.L113:
	movl	$9, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L35
.L106:
	movl	$2, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L28
.L107:
	movl	$3, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L29
.L108:
	movl	$4, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L30
.L109:
	movl	$5, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L31
.L110:
	movl	$6, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L32
.L112:
	movl	$8, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L34
.L111:
	movl	$7, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
.L91:
	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(){
 
  int card[4][13]={};
  int n, num, i, j;
  char m;
 
  scanf("%d", &n);
  for(i=0;i<n;i++){
    scanf(" %c %d", &m, &num);
    if(m=='S') card[0][num-1]=1;
    else if(m=='H') card[1][num-1]=1;
    else if(m=='C') card[2][num-1]=1;
    else if(m=='D') card[3][num-1]=1;
  }
 
  for(i=0;i<4;i++){
    for(j=0;j<13;j++){
      if(i==0&&card[i][j]==0) printf("S %d\n", j+1);
      else if(i==1&&card[i][j]==0) printf("H %d\n", j+1);
      else if(i==2&&card[i][j]==0) printf("C %d\n", j+1);
      else if(i==3&&card[i][j]==0) printf("D %d\n", j+1);
    }
  }
 
   
  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(){
 
  int card[4][13]={};
  int n, num, i, j;
  char m;
 
  scanf("%d", &n);
  for(i=0;i<n;i++){
    scanf(" %c %d", &m, &num);
    if(m=='S') card[0][num-1]=1;
    else if(m=='H') card[1][num-1]=1;
    else if(m=='C') card[2][num-1]=1;
    else if(m=='D') card[3][num-1]=1;
  }
 
  for(i=0;i<4;i++){
    for(j=0;j<13;j++){
      if(i==0&&card[i][j]==0) printf("S %d\n", j+1);
      else if(i==1&&card[i][j]==0) printf("H %d\n", j+1);
      else if(i==2&&card[i][j]==0) printf("C %d\n", j+1);
      else if(i==3&&card[i][j]==0) printf("D %d\n", j+1);
    }
  }
 
   
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %c %d"
.LC2:
	.string	"S %d\n"
.LC3:
	.string	"H %d\n"
.LC4:
	.string	"C %d\n"
.LC5:
	.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	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-224(%rbp), %rdx
	movl	$0, %eax
	movl	$26, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -232(%rbp)
	jmp	.L2
.L7:
	leaq	-236(%rbp), %rdx
	leaq	-241(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-241(%rbp), %eax
	cmpb	$83, %al
	jne	.L3
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L4
.L3:
	movzbl	-241(%rbp), %eax
	cmpb	$72, %al
	jne	.L5
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$13, %rax
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L4
.L5:
	movzbl	-241(%rbp), %eax
	cmpb	$67, %al
	jne	.L6
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$26, %rax
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L4
.L6:
	movzbl	-241(%rbp), %eax
	cmpb	$68, %al
	jne	.L4
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$39, %rax
	movl	$1, -224(%rbp,%rax,4)
.L4:
	addl	$1, -232(%rbp)
.L2:
	movl	-240(%rbp), %eax
	cmpl	%eax, -232(%rbp)
	jl	.L7
	movl	$0, -232(%rbp)
	jmp	.L8
.L15:
	movl	$0, -228(%rbp)
	jmp	.L9
.L14:
	cmpl	$0, -232(%rbp)
	jne	.L10
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L10:
	cmpl	$1, -232(%rbp)
	jne	.L12
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L12
	movl	-228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L12:
	cmpl	$2, -232(%rbp)
	jne	.L13
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L13
	movl	-228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L13:
	cmpl	$3, -232(%rbp)
	jne	.L11
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L11
	movl	-228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L11:
	addl	$1, -228(%rbp)
.L9:
	cmpl	$12, -228(%rbp)
	jle	.L14
	addl	$1, -232(%rbp)
.L8:
	cmpl	$3, -232(%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 %d"
.LC2:
	.string	"S %d\n"
.LC3:
	.string	"H %d\n"
.LC4:
	.string	"C %d\n"
.LC5:
	.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	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-224(%rbp), %rdx
	movl	$0, %eax
	movl	$26, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -232(%rbp)
	jmp	.L2
.L7:
	leaq	-236(%rbp), %rdx
	leaq	-241(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-241(%rbp), %eax
	cmpb	$83, %al
	jne	.L3
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L4
.L3:
	movzbl	-241(%rbp), %eax
	cmpb	$72, %al
	jne	.L5
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$13, %rax
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L4
.L5:
	movzbl	-241(%rbp), %eax
	cmpb	$67, %al
	jne	.L6
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$26, %rax
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L4
.L6:
	movzbl	-241(%rbp), %eax
	cmpb	$68, %al
	jne	.L4
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$39, %rax
	movl	$1, -224(%rbp,%rax,4)
.L4:
	addl	$1, -232(%rbp)
.L2:
	movl	-240(%rbp), %eax
	cmpl	%eax, -232(%rbp)
	jl	.L7
	movl	$0, -232(%rbp)
	jmp	.L8
.L15:
	movl	$0, -228(%rbp)
	jmp	.L9
.L14:
	cmpl	$0, -232(%rbp)
	jne	.L10
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L10:
	cmpl	$1, -232(%rbp)
	jne	.L12
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L12
	movl	-228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L12:
	cmpl	$2, -232(%rbp)
	jne	.L13
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L13
	movl	-228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L13:
	cmpl	$3, -232(%rbp)
	jne	.L11
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L11
	movl	-228(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L11:
	addl	$1, -228(%rbp)
.L9:
	cmpl	$12, -228(%rbp)
	jle	.L14
	addl	$1, -232(%rbp)
.L8:
	cmpl	$3, -232(%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:
