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>
#include<string.h>
int main()
{
    char a[200];
    int i,n;
    while(scanf("%d",&n)==1)
    {
        getchar();
        gets(a);
        int c1=0,c2=0;
        for(i=0;i<n;i++)
        {
            if(a[i]=='R')
                c1++;
            else
                c2++;
        }
        if(c1>c2)
            printf("Yes\n");
        else
            printf("No\n");
    }
    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%d"
	.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	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L8:
	call	getchar@PLT
	leaq	-208(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	movl	$0, -216(%rbp)
	movl	$0, -212(%rbp)
	movl	$0, -220(%rbp)
	jmp	.L3
.L6:
	movl	-220(%rbp), %eax
	cltq
	movzbl	-208(%rbp,%rax), %eax
	cmpb	$82, %al
	jne	.L4
	addl	$1, -216(%rbp)
	jmp	.L5
.L4:
	addl	$1, -212(%rbp)
.L5:
	addl	$1, -220(%rbp)
.L3:
	movl	-224(%rbp), %eax
	cmpl	%eax, -220(%rbp)
	jl	.L6
	movl	-216(%rbp), %eax
	cmpl	-212(%rbp), %eax
	jle	.L7
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L2
.L7:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-224(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L8
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	leaq	.LC3(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC4(%rip), %rbx
	subq	$224, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L45
	movq	stdin(%rip), %rdi
	leaq	16(%rsp), %r14
	call	getc@PLT
	xorl	%eax, %eax
	movq	%r14, %rdi
	call	gets@PLT
	movl	12(%rsp), %ecx
	movdqa	.LC1(%rip), %xmm5
	testl	%ecx, %ecx
	jle	.L3
	leal	-1(%rcx), %eax
	cmpl	$14, %eax
	jbe	.L41
	movl	%ecx, %edx
	pxor	%xmm8, %xmm8
	pxor	%xmm4, %xmm4
	movq	%r14, %rax
	shrl	$4, %edx
	movdqa	%xmm8, %xmm7
	pxor	%xmm3, %xmm3
	subl	$1, %edx
	salq	$4, %rdx
	leaq	32(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	(%rax), %xmm0
	movdqa	%xmm4, %xmm2
	movdqa	%xmm3, %xmm9
	addq	$16, %rax
	pcmpeqb	.LC0(%rip), %xmm0
	movdqa	%xmm0, %xmm1
	pandn	%xmm5, %xmm0
	pand	%xmm5, %xmm1
	pcmpgtb	%xmm1, %xmm2
	movdqa	%xmm1, %xmm6
	punpcklbw	%xmm2, %xmm6
	punpckhbw	%xmm2, %xmm1
	pcmpgtw	%xmm6, %xmm9
	movdqa	%xmm6, %xmm2
	punpcklwd	%xmm9, %xmm2
	punpckhwd	%xmm9, %xmm6
	paddd	%xmm7, %xmm2
	movdqa	%xmm1, %xmm7
	paddd	%xmm6, %xmm2
	movdqa	%xmm3, %xmm6
	pcmpgtw	%xmm1, %xmm6
	punpcklwd	%xmm6, %xmm7
	punpckhwd	%xmm6, %xmm1
	movdqa	%xmm0, %xmm6
	paddd	%xmm7, %xmm2
	movdqa	%xmm2, %xmm7
	paddd	%xmm1, %xmm7
	movdqa	%xmm4, %xmm1
	pcmpgtb	%xmm0, %xmm1
	punpcklbw	%xmm1, %xmm6
	punpckhbw	%xmm1, %xmm0
	movdqa	%xmm3, %xmm1
	pcmpgtw	%xmm6, %xmm1
	movdqa	%xmm6, %xmm2
	punpcklwd	%xmm1, %xmm2
	punpckhwd	%xmm1, %xmm6
	movdqa	%xmm3, %xmm1
	pcmpgtw	%xmm0, %xmm1
	paddd	%xmm8, %xmm2
	paddd	%xmm6, %xmm2
	movdqa	%xmm0, %xmm6
	punpcklwd	%xmm1, %xmm6
	punpckhwd	%xmm1, %xmm0
	paddd	%xmm6, %xmm2
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm8
	cmpq	%rax, %rdx
	jne	.L5
	movdqa	%xmm2, %xmm0
	movl	%ecx, %esi
	psrldq	$8, %xmm0
	andl	$-16, %esi
	paddd	%xmm0, %xmm8
	movdqa	%xmm8, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm8
	movdqa	%xmm7, %xmm0
	psrldq	$8, %xmm0
	movd	%xmm8, %eax
	paddd	%xmm0, %xmm7
	movdqa	%xmm7, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm7
	movd	%xmm7, %edx
	testb	$15, %cl
	je	.L6
.L4:
	movslq	%esi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L46
	addl	$1, %eax
.L8:
	leal	1(%rsi), %edi
	cmpl	%ecx, %edi
	jge	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L47
	addl	$1, %eax
.L10:
	leal	2(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L48
	addl	$1, %eax
.L12:
	leal	3(%rsi), %edi
	cmpl	%ecx, %edi
	jge	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L49
	addl	$1, %eax
.L14:
	leal	4(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L50
	addl	$1, %eax
.L16:
	leal	5(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L51
	addl	$1, %eax
.L18:
	leal	6(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L52
	addl	$1, %eax
.L20:
	leal	7(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L53
	addl	$1, %eax
.L22:
	leal	8(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L54
	addl	$1, %eax
.L24:
	leal	9(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L55
	addl	$1, %eax
.L26:
	leal	10(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L56
	addl	$1, %eax
.L28:
	leal	11(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L57
	addl	$1, %eax
.L30:
	leal	12(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L58
	addl	$1, %eax
.L32:
	leal	13(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L59
	addl	$1, %eax
.L34:
	addl	$14, %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$82, 16(%rsp,%rsi)
	je	.L35
	addl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	%eax, %edx
	jle	.L3
	movq	%r12, %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L46:
	addl	$1, %edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L47:
	addl	$1, %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L48:
	addl	$1, %edx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L49:
	addl	$1, %edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L50:
	addl	$1, %edx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L51:
	addl	$1, %edx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L52:
	addl	$1, %edx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L53:
	addl	$1, %edx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L45:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L60
	addq	$224, %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
	.p2align 4,,10
	.p2align 3
.L54:
	.cfi_restore_state
	addl	$1, %edx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L55:
	addl	$1, %edx
	jmp	.L26
.L41:
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	.L4
.L56:
	addl	$1, %edx
	jmp	.L28
.L57:
	addl	$1, %edx
	jmp	.L30
.L58:
	addl	$1, %edx
	jmp	.L32
.L59:
	addl	$1, %edx
	jmp	.L34
.L35:
	addl	$1, %edx
	jmp	.L6
.L60:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.align 16
.LC1:
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.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
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	leaq	.LC3(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC4(%rip), %rbx
	subq	$224, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L45
	movq	stdin(%rip), %rdi
	leaq	16(%rsp), %r14
	call	getc@PLT
	xorl	%eax, %eax
	movq	%r14, %rdi
	call	gets@PLT
	movl	12(%rsp), %ecx
	movdqa	.LC1(%rip), %xmm5
	testl	%ecx, %ecx
	jle	.L3
	leal	-1(%rcx), %eax
	cmpl	$14, %eax
	jbe	.L41
	movl	%ecx, %edx
	pxor	%xmm8, %xmm8
	pxor	%xmm4, %xmm4
	movq	%r14, %rax
	shrl	$4, %edx
	movdqa	%xmm8, %xmm7
	pxor	%xmm3, %xmm3
	subl	$1, %edx
	salq	$4, %rdx
	leaq	32(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	(%rax), %xmm0
	movdqa	%xmm4, %xmm2
	movdqa	%xmm3, %xmm9
	addq	$16, %rax
	pcmpeqb	.LC0(%rip), %xmm0
	movdqa	%xmm0, %xmm1
	pandn	%xmm5, %xmm0
	pand	%xmm5, %xmm1
	pcmpgtb	%xmm1, %xmm2
	movdqa	%xmm1, %xmm6
	punpcklbw	%xmm2, %xmm6
	punpckhbw	%xmm2, %xmm1
	pcmpgtw	%xmm6, %xmm9
	movdqa	%xmm6, %xmm2
	punpcklwd	%xmm9, %xmm2
	punpckhwd	%xmm9, %xmm6
	paddd	%xmm7, %xmm2
	movdqa	%xmm1, %xmm7
	paddd	%xmm6, %xmm2
	movdqa	%xmm3, %xmm6
	pcmpgtw	%xmm1, %xmm6
	punpcklwd	%xmm6, %xmm7
	punpckhwd	%xmm6, %xmm1
	movdqa	%xmm0, %xmm6
	paddd	%xmm7, %xmm2
	movdqa	%xmm2, %xmm7
	paddd	%xmm1, %xmm7
	movdqa	%xmm4, %xmm1
	pcmpgtb	%xmm0, %xmm1
	punpcklbw	%xmm1, %xmm6
	punpckhbw	%xmm1, %xmm0
	movdqa	%xmm3, %xmm1
	pcmpgtw	%xmm6, %xmm1
	movdqa	%xmm6, %xmm2
	punpcklwd	%xmm1, %xmm2
	punpckhwd	%xmm1, %xmm6
	movdqa	%xmm3, %xmm1
	pcmpgtw	%xmm0, %xmm1
	paddd	%xmm8, %xmm2
	paddd	%xmm6, %xmm2
	movdqa	%xmm0, %xmm6
	punpcklwd	%xmm1, %xmm6
	punpckhwd	%xmm1, %xmm0
	paddd	%xmm6, %xmm2
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm8
	cmpq	%rax, %rdx
	jne	.L5
	movdqa	%xmm2, %xmm0
	movl	%ecx, %esi
	psrldq	$8, %xmm0
	andl	$-16, %esi
	paddd	%xmm0, %xmm8
	movdqa	%xmm8, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm8
	movdqa	%xmm7, %xmm0
	psrldq	$8, %xmm0
	movd	%xmm8, %eax
	paddd	%xmm0, %xmm7
	movdqa	%xmm7, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm7
	movd	%xmm7, %edx
	testb	$15, %cl
	je	.L6
.L4:
	movslq	%esi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L46
	addl	$1, %eax
.L8:
	leal	1(%rsi), %edi
	cmpl	%ecx, %edi
	jge	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L47
	addl	$1, %eax
.L10:
	leal	2(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L48
	addl	$1, %eax
.L12:
	leal	3(%rsi), %edi
	cmpl	%ecx, %edi
	jge	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L49
	addl	$1, %eax
.L14:
	leal	4(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L50
	addl	$1, %eax
.L16:
	leal	5(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L51
	addl	$1, %eax
.L18:
	leal	6(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L52
	addl	$1, %eax
.L20:
	leal	7(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L53
	addl	$1, %eax
.L22:
	leal	8(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L54
	addl	$1, %eax
.L24:
	leal	9(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L55
	addl	$1, %eax
.L26:
	leal	10(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L56
	addl	$1, %eax
.L28:
	leal	11(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L57
	addl	$1, %eax
.L30:
	leal	12(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L58
	addl	$1, %eax
.L32:
	leal	13(%rsi), %edi
	cmpl	%edi, %ecx
	jle	.L6
	movslq	%edi, %rdi
	cmpb	$82, 16(%rsp,%rdi)
	je	.L59
	addl	$1, %eax
.L34:
	addl	$14, %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	cmpb	$82, 16(%rsp,%rsi)
	je	.L35
	addl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	%eax, %edx
	jle	.L3
	movq	%r12, %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L46:
	addl	$1, %edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L47:
	addl	$1, %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L48:
	addl	$1, %edx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L49:
	addl	$1, %edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L50:
	addl	$1, %edx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L51:
	addl	$1, %edx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L52:
	addl	$1, %edx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L53:
	addl	$1, %edx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L45:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L60
	addq	$224, %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
	.p2align 4,,10
	.p2align 3
.L54:
	.cfi_restore_state
	addl	$1, %edx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L55:
	addl	$1, %edx
	jmp	.L26
.L41:
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	.L4
.L56:
	addl	$1, %edx
	jmp	.L28
.L57:
	addl	$1, %edx
	jmp	.L30
.L58:
	addl	$1, %edx
	jmp	.L32
.L59:
	addl	$1, %edx
	jmp	.L34
.L35:
	addl	$1, %edx
	jmp	.L6
.L60:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.byte	82
	.align 16
.LC1:
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.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>
#include<string.h>
int main()
{
    char a[200];
    int i,n;
    while(scanf("%d",&n)==1)
    {
        getchar();
        gets(a);
        int c1=0,c2=0;
        for(i=0;i<n;i++)
        {
            if(a[i]=='R')
                c1++;
            else
                c2++;
        }
        if(c1>c2)
            printf("Yes\n");
        else
            printf("No\n");
    }
    return 0;
}


4
RBRR
 4
BBRR
 4
RRCR
 4
RRAR
 4
RARR
 4
BQBR
 4
RCRR
 4
BPBR
 4
RRRC
 4
AQBR

Yes
 No
 Yes
 Yes
 Yes
 No
 Yes
 No
 Yes
 No

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>
#include<string.h>
int main()
{
    char a[200];
    int i,n;
    while(scanf("%d",&n)==1)
    {
        getchar();
        gets(a);
        int c1=0,c2=0;
        for(i=0;i<n;i++)
        {
            if(a[i]=='R')
                c1++;
            else
                c2++;
        }
        if(c1>c2)
            printf("Yes\n");
        else
            printf("No\n");
    }
    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%d"
	.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	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L8:
	call	getchar@PLT
	leaq	-208(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	movl	$0, -216(%rbp)
	movl	$0, -212(%rbp)
	movl	$0, -220(%rbp)
	jmp	.L3
.L6:
	movl	-220(%rbp), %eax
	cltq
	movzbl	-208(%rbp,%rax), %eax
	cmpb	$82, %al
	jne	.L4
	addl	$1, -216(%rbp)
	jmp	.L5
.L4:
	addl	$1, -212(%rbp)
.L5:
	addl	$1, -220(%rbp)
.L3:
	movl	-224(%rbp), %eax
	cmpl	%eax, -220(%rbp)
	jl	.L6
	movl	-216(%rbp), %eax
	cmpl	-212(%rbp), %eax
	jle	.L7
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L2
.L7:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-224(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L8
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%d"
	.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	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L8:
	call	getchar@PLT
	leaq	-208(%rbp), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	movl	$0, -216(%rbp)
	movl	$0, -212(%rbp)
	movl	$0, -220(%rbp)
	jmp	.L3
.L6:
	movl	-220(%rbp), %eax
	cltq
	movzbl	-208(%rbp,%rax), %eax
	cmpb	$82, %al
	jne	.L4
	addl	$1, -216(%rbp)
	jmp	.L5
.L4:
	addl	$1, -212(%rbp)
.L5:
	addl	$1, -220(%rbp)
.L3:
	movl	-224(%rbp), %eax
	cmpl	%eax, -220(%rbp)
	jl	.L6
	movl	-216(%rbp), %eax
	cmpl	-212(%rbp), %eax
	jle	.L7
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L2
.L7:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-224(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L8
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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:
