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>
#include <stdlib.h>
 
int comp( const void *c1, const void *c2 );

int main(void)
{
	char s[8001];
	int  x, y, i, j, c, xx[8000]={0}, yy[8000]={0}, xm=0, ym=0;
    
	scanf("%s", s);
	scanf("%d %d", &x, &y);
	
	c = 0; j = 0;
	for(i = 0; i <= strlen(s); i++){
	    if(s[i] == 'F'){
	        c++;
	    }else{
	        if(j%2){
	            yy[j] = c;
	        }else{
	            xx[j] = c;
	        }
	        c = 0;
	        j++;
	    }
	}
	xm = xx[0];
	xx[0] = 0;
	qsort( xx, strlen(s), sizeof(int), comp);
	qsort( yy, strlen(s), sizeof(int), comp);

	for(i = 0; xx[i] != 0; i++){
	    if(xm <= x){
	        xm += xx[i];
	    }else{
	        xm -= xx[i];
	    }
	}
	for(i = 0; yy[i] != 0; i++){
	    if(ym <= y){
	        ym += yy[i];
	    }else{
	        ym -= yy[i];
	    }
	}

	printf("%s\n", xm==x&&ym==y?"Yes":"No");
	return 0;
}

int comp( const void *c1, const void *c2 )
{
  int tmp1 = *(int *)c1;
  int tmp2 = *(int *)c2;
 
  if( tmp1 > tmp2 )  return -1;
  if( tmp1 == tmp2 ) return  0;
  if( tmp1 < tmp2 )  return  1;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-69632(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2424, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-72032(%rbp), %rax
	movl	$32000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-40032(%rbp), %rax
	movl	$32000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -72040(%rbp)
	movl	$0, -72036(%rbp)
	leaq	-8032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-72056(%rbp), %rdx
	leaq	-72060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -72044(%rbp)
	movl	$0, -72048(%rbp)
	movl	$0, -72052(%rbp)
	jmp	.L2
.L7:
	movl	-72052(%rbp), %eax
	cltq
	movzbl	-8032(%rbp,%rax), %eax
	cmpb	$70, %al
	jne	.L3
	addl	$1, -72044(%rbp)
	jmp	.L4
.L3:
	movl	-72048(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L5
	movl	-72048(%rbp), %eax
	cltq
	movl	-72044(%rbp), %edx
	movl	%edx, -40032(%rbp,%rax,4)
	jmp	.L6
.L5:
	movl	-72048(%rbp), %eax
	cltq
	movl	-72044(%rbp), %edx
	movl	%edx, -72032(%rbp,%rax,4)
.L6:
	movl	$0, -72044(%rbp)
	addl	$1, -72048(%rbp)
.L4:
	addl	$1, -72052(%rbp)
.L2:
	movl	-72052(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-8032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jbe	.L7
	movl	-72032(%rbp), %eax
	movl	%eax, -72040(%rbp)
	movl	$0, -72032(%rbp)
	leaq	-8032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rsi
	leaq	-72032(%rbp), %rax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	leaq	-8032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rsi
	leaq	-40032(%rbp), %rax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -72052(%rbp)
	jmp	.L8
.L11:
	movl	-72060(%rbp), %eax
	cmpl	%eax, -72040(%rbp)
	jg	.L9
	movl	-72052(%rbp), %eax
	cltq
	movl	-72032(%rbp,%rax,4), %eax
	addl	%eax, -72040(%rbp)
	jmp	.L10
.L9:
	movl	-72052(%rbp), %eax
	cltq
	movl	-72032(%rbp,%rax,4), %eax
	subl	%eax, -72040(%rbp)
.L10:
	addl	$1, -72052(%rbp)
.L8:
	movl	-72052(%rbp), %eax
	cltq
	movl	-72032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L11
	movl	$0, -72052(%rbp)
	jmp	.L12
.L15:
	movl	-72056(%rbp), %eax
	cmpl	%eax, -72036(%rbp)
	jg	.L13
	movl	-72052(%rbp), %eax
	cltq
	movl	-40032(%rbp,%rax,4), %eax
	addl	%eax, -72036(%rbp)
	jmp	.L14
.L13:
	movl	-72052(%rbp), %eax
	cltq
	movl	-40032(%rbp,%rax,4), %eax
	subl	%eax, -72036(%rbp)
.L14:
	addl	$1, -72052(%rbp)
.L12:
	movl	-72052(%rbp), %eax
	cltq
	movl	-40032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L15
	movl	-72060(%rbp), %eax
	cmpl	%eax, -72040(%rbp)
	jne	.L16
	movl	-72056(%rbp), %eax
	cmpl	%eax, -72036(%rbp)
	jne	.L16
	leaq	.LC2(%rip), %rax
	jmp	.L17
.L16:
	leaq	.LC3(%rip), %rax
.L17:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	comp
	.type	comp, @function
comp:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L21
	movl	$-1, %eax
	jmp	.L20
.L21:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jne	.L23
	movl	$0, %eax
	jmp	.L20
.L23:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L24
	movl	$1, %eax
	jmp	.L20
.L24:
.L20:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	comp, .-comp
	.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
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB52:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$-1, %eax
	cmpl	%edx, (%rdi)
	jg	.L1
	movl	$0, %eax
	je	.L1
	movl	$1, %eax
.L1:
	ret
	.cfi_endproc
.LFE52:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-69632(%rsp), %r11
	.cfi_def_cfa 11, 69688
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2408, %rsp
	.cfi_def_cfa_offset 72096
	movl	$32000, %edx
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	movq	%fs:40, %rax
	movq	%rax, 72024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	32016(%rsp), %rbp
	movq	%r12, %rdi
	leaq	64016(%rsp), %r14
	call	memset@PLT
	movl	$32000, %edx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	memset@PLT
	movq	%r14, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	%r13d, %rax
	testb	$1, %r13b
	je	.L10
	movl	%r15d, 32016(%rsp,%rax,4)
.L11:
	addl	$1, %r13d
	xorl	%r15d, %r15d
.L9:
	movq	%r14, %rdi
	addq	$1, %rbx
	call	strlen@PLT
	cmpq	%rbx, %rax
	jb	.L31
.L12:
	cmpb	$70, (%r14,%rbx)
	jne	.L8
	addl	$1, %r15d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%r15d, 16(%rsp,%rax,4)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L31:
	movl	$4, %edx
	movq	%rax, %rsi
	movq	%r12, %rdi
	movl	16(%rsp), %ebx
	leaq	comp(%rip), %r13
	movl	$0, 16(%rsp)
	movq	%r13, %rcx
	call	qsort@PLT
	movq	%r14, %rdi
	call	strlen@PLT
	movq	%r13, %rcx
	movl	$4, %edx
	movq	%rbp, %rdi
	movq	%rax, %rsi
	call	qsort@PLT
	movl	16(%rsp), %eax
	movl	8(%rsp), %r8d
	testl	%eax, %eax
	je	.L17
	leaq	20(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%ebx, %esi
	leal	(%rbx,%rax), %ecx
	subl	%eax, %esi
	cmpl	%ebx, %r8d
	cmovl	%esi, %ecx
	movl	(%rdx), %eax
	addq	$4, %rdx
	movl	%ecx, %ebx
	testl	%eax, %eax
	jne	.L16
.L17:
	movl	32016(%rsp), %eax
	testl	%eax, %eax
	je	.L24
	movl	12(%rsp), %r9d
	leaq	32020(%rsp), %rcx
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L21:
	leal	(%rdx,%rax), %esi
	movl	%edx, %edi
	subl	%eax, %edi
	cmpl	%edx, %r9d
	movl	%esi, %edx
	cmovl	%edi, %edx
	movl	(%rcx), %eax
	addq	$4, %rcx
	testl	%eax, %eax
	jne	.L21
.L18:
	leaq	.LC1(%rip), %rdi
	cmpl	%ebx, %r8d
	jne	.L22
	cmpl	%edx, 12(%rsp)
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rdi
.L22:
	call	puts@PLT
	movq	72024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$72040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L18
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB52:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$-1, %eax
	cmpl	%edx, (%rdi)
	jg	.L1
	movl	$0, %eax
	je	.L1
	movl	$1, %eax
.L1:
	ret
	.cfi_endproc
.LFE52:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-69632(%rsp), %r11
	.cfi_def_cfa 11, 69688
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2408, %rsp
	.cfi_def_cfa_offset 72096
	movl	$32000, %edx
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	movq	%fs:40, %rax
	movq	%rax, 72024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	32016(%rsp), %rbp
	movq	%r12, %rdi
	leaq	64016(%rsp), %r14
	call	memset@PLT
	movl	$32000, %edx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	memset@PLT
	movq	%r14, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	%r13d, %rax
	testb	$1, %r13b
	je	.L10
	movl	%r15d, 32016(%rsp,%rax,4)
.L11:
	addl	$1, %r13d
	xorl	%r15d, %r15d
.L9:
	movq	%r14, %rdi
	addq	$1, %rbx
	call	strlen@PLT
	cmpq	%rbx, %rax
	jb	.L31
.L12:
	cmpb	$70, (%r14,%rbx)
	jne	.L8
	addl	$1, %r15d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%r15d, 16(%rsp,%rax,4)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L31:
	movl	$4, %edx
	movq	%rax, %rsi
	movq	%r12, %rdi
	movl	16(%rsp), %ebx
	leaq	comp(%rip), %r13
	movl	$0, 16(%rsp)
	movq	%r13, %rcx
	call	qsort@PLT
	movq	%r14, %rdi
	call	strlen@PLT
	movq	%r13, %rcx
	movl	$4, %edx
	movq	%rbp, %rdi
	movq	%rax, %rsi
	call	qsort@PLT
	movl	16(%rsp), %eax
	movl	8(%rsp), %r8d
	testl	%eax, %eax
	je	.L17
	leaq	20(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%ebx, %esi
	leal	(%rbx,%rax), %ecx
	subl	%eax, %esi
	cmpl	%ebx, %r8d
	cmovl	%esi, %ecx
	movl	(%rdx), %eax
	addq	$4, %rdx
	movl	%ecx, %ebx
	testl	%eax, %eax
	jne	.L16
.L17:
	movl	32016(%rsp), %eax
	testl	%eax, %eax
	je	.L24
	movl	12(%rsp), %r9d
	leaq	32020(%rsp), %rcx
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L21:
	leal	(%rdx,%rax), %esi
	movl	%edx, %edi
	subl	%eax, %edi
	cmpl	%edx, %r9d
	movl	%esi, %edx
	cmovl	%edi, %edx
	movl	(%rcx), %eax
	addq	$4, %rcx
	testl	%eax, %eax
	jne	.L21
.L18:
	leaq	.LC1(%rip), %rdi
	cmpl	%ebx, %r8d
	jne	.L22
	cmpl	%edx, 12(%rsp)
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rdi
.L22:
	call	puts@PLT
	movq	72024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$72040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L18
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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>
#include <string.h>
#include <stdlib.h>
 
int comp( const void *c1, const void *c2 );

int main(void)
{
	char s[8001];
	int  x, y, i, j, c, xx[8000]={0}, yy[8000]={0}, xm=0, ym=0;
    
	scanf("%s", s);
	scanf("%d %d", &x, &y);
	
	c = 0; j = 0;
	for(i = 0; i <= strlen(s); i++){
	    if(s[i] == 'F'){
	        c++;
	    }else{
	        if(j%2){
	            yy[j] = c;
	        }else{
	            xx[j] = c;
	        }
	        c = 0;
	        j++;
	    }
	}
	xm = xx[0];
	xx[0] = 0;
	qsort( xx, strlen(s), sizeof(int), comp);
	qsort( yy, strlen(s), sizeof(int), comp);

	for(i = 0; xx[i] != 0; i++){
	    if(xm <= x){
	        xm += xx[i];
	    }else{
	        xm -= xx[i];
	    }
	}
	for(i = 0; yy[i] != 0; i++){
	    if(ym <= y){
	        ym += yy[i];
	    }else{
	        ym -= yy[i];
	    }
	}

	printf("%s\n", xm==x&&ym==y?"Yes":"No");
	return 0;
}

int comp( const void *c1, const void *c2 )
{
  int tmp1 = *(int *)c1;
  int tmp2 = *(int *)c2;
 
  if( tmp1 > tmp2 )  return -1;
  if( tmp1 == tmp2 ) return  0;
  if( tmp1 < tmp2 )  return  1;
}
UF
1 0
 FT
1 0
 FF
1 -1
 FFTTFF
1 0
 FTFFTFFF
-2 -3
 TTTT
1 -1
 FTFFTFFF
4 0
 UF
1 -1
 FF
0 -1
 FFTTFF
2 0

No
 Yes
 No
 No
 No
 No
 No
 No
 No
 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>
#include <stdlib.h>
 
int comp( const void *c1, const void *c2 );

int main(void)
{
	char s[8001];
	int  x, y, i, j, c, xx[8000]={0}, yy[8000]={0}, xm=0, ym=0;
    
	scanf("%s", s);
	scanf("%d %d", &x, &y);
	
	c = 0; j = 0;
	for(i = 0; i <= strlen(s); i++){
	    if(s[i] == 'F'){
	        c++;
	    }else{
	        if(j%2){
	            yy[j] = c;
	        }else{
	            xx[j] = c;
	        }
	        c = 0;
	        j++;
	    }
	}
	xm = xx[0];
	xx[0] = 0;
	qsort( xx, strlen(s), sizeof(int), comp);
	qsort( yy, strlen(s), sizeof(int), comp);

	for(i = 0; xx[i] != 0; i++){
	    if(xm <= x){
	        xm += xx[i];
	    }else{
	        xm -= xx[i];
	    }
	}
	for(i = 0; yy[i] != 0; i++){
	    if(ym <= y){
	        ym += yy[i];
	    }else{
	        ym -= yy[i];
	    }
	}

	printf("%s\n", xm==x&&ym==y?"Yes":"No");
	return 0;
}

int comp( const void *c1, const void *c2 )
{
  int tmp1 = *(int *)c1;
  int tmp2 = *(int *)c2;
 
  if( tmp1 > tmp2 )  return -1;
  if( tmp1 == tmp2 ) return  0;
  if( tmp1 < tmp2 )  return  1;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-69632(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2424, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-72032(%rbp), %rax
	movl	$32000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-40032(%rbp), %rax
	movl	$32000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -72040(%rbp)
	movl	$0, -72036(%rbp)
	leaq	-8032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-72056(%rbp), %rdx
	leaq	-72060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -72044(%rbp)
	movl	$0, -72048(%rbp)
	movl	$0, -72052(%rbp)
	jmp	.L2
.L7:
	movl	-72052(%rbp), %eax
	cltq
	movzbl	-8032(%rbp,%rax), %eax
	cmpb	$70, %al
	jne	.L3
	addl	$1, -72044(%rbp)
	jmp	.L4
.L3:
	movl	-72048(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L5
	movl	-72048(%rbp), %eax
	cltq
	movl	-72044(%rbp), %edx
	movl	%edx, -40032(%rbp,%rax,4)
	jmp	.L6
.L5:
	movl	-72048(%rbp), %eax
	cltq
	movl	-72044(%rbp), %edx
	movl	%edx, -72032(%rbp,%rax,4)
.L6:
	movl	$0, -72044(%rbp)
	addl	$1, -72048(%rbp)
.L4:
	addl	$1, -72052(%rbp)
.L2:
	movl	-72052(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-8032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jbe	.L7
	movl	-72032(%rbp), %eax
	movl	%eax, -72040(%rbp)
	movl	$0, -72032(%rbp)
	leaq	-8032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rsi
	leaq	-72032(%rbp), %rax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	leaq	-8032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rsi
	leaq	-40032(%rbp), %rax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -72052(%rbp)
	jmp	.L8
.L11:
	movl	-72060(%rbp), %eax
	cmpl	%eax, -72040(%rbp)
	jg	.L9
	movl	-72052(%rbp), %eax
	cltq
	movl	-72032(%rbp,%rax,4), %eax
	addl	%eax, -72040(%rbp)
	jmp	.L10
.L9:
	movl	-72052(%rbp), %eax
	cltq
	movl	-72032(%rbp,%rax,4), %eax
	subl	%eax, -72040(%rbp)
.L10:
	addl	$1, -72052(%rbp)
.L8:
	movl	-72052(%rbp), %eax
	cltq
	movl	-72032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L11
	movl	$0, -72052(%rbp)
	jmp	.L12
.L15:
	movl	-72056(%rbp), %eax
	cmpl	%eax, -72036(%rbp)
	jg	.L13
	movl	-72052(%rbp), %eax
	cltq
	movl	-40032(%rbp,%rax,4), %eax
	addl	%eax, -72036(%rbp)
	jmp	.L14
.L13:
	movl	-72052(%rbp), %eax
	cltq
	movl	-40032(%rbp,%rax,4), %eax
	subl	%eax, -72036(%rbp)
.L14:
	addl	$1, -72052(%rbp)
.L12:
	movl	-72052(%rbp), %eax
	cltq
	movl	-40032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L15
	movl	-72060(%rbp), %eax
	cmpl	%eax, -72040(%rbp)
	jne	.L16
	movl	-72056(%rbp), %eax
	cmpl	%eax, -72036(%rbp)
	jne	.L16
	leaq	.LC2(%rip), %rax
	jmp	.L17
.L16:
	leaq	.LC3(%rip), %rax
.L17:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	comp
	.type	comp, @function
comp:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L21
	movl	$-1, %eax
	jmp	.L20
.L21:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jne	.L23
	movl	$0, %eax
	jmp	.L20
.L23:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L24
	movl	$1, %eax
	jmp	.L20
.L24:
.L20:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	comp, .-comp
	.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	"%s"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-69632(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2424, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-72032(%rbp), %rax
	movl	$32000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-40032(%rbp), %rax
	movl	$32000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -72040(%rbp)
	movl	$0, -72036(%rbp)
	leaq	-8032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-72056(%rbp), %rdx
	leaq	-72060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -72044(%rbp)
	movl	$0, -72048(%rbp)
	movl	$0, -72052(%rbp)
	jmp	.L2
.L7:
	movl	-72052(%rbp), %eax
	cltq
	movzbl	-8032(%rbp,%rax), %eax
	cmpb	$70, %al
	jne	.L3
	addl	$1, -72044(%rbp)
	jmp	.L4
.L3:
	movl	-72048(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L5
	movl	-72048(%rbp), %eax
	cltq
	movl	-72044(%rbp), %edx
	movl	%edx, -40032(%rbp,%rax,4)
	jmp	.L6
.L5:
	movl	-72048(%rbp), %eax
	cltq
	movl	-72044(%rbp), %edx
	movl	%edx, -72032(%rbp,%rax,4)
.L6:
	movl	$0, -72044(%rbp)
	addl	$1, -72048(%rbp)
.L4:
	addl	$1, -72052(%rbp)
.L2:
	movl	-72052(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-8032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jbe	.L7
	movl	-72032(%rbp), %eax
	movl	%eax, -72040(%rbp)
	movl	$0, -72032(%rbp)
	leaq	-8032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rsi
	leaq	-72032(%rbp), %rax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	leaq	-8032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rsi
	leaq	-40032(%rbp), %rax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -72052(%rbp)
	jmp	.L8
.L11:
	movl	-72060(%rbp), %eax
	cmpl	%eax, -72040(%rbp)
	jg	.L9
	movl	-72052(%rbp), %eax
	cltq
	movl	-72032(%rbp,%rax,4), %eax
	addl	%eax, -72040(%rbp)
	jmp	.L10
.L9:
	movl	-72052(%rbp), %eax
	cltq
	movl	-72032(%rbp,%rax,4), %eax
	subl	%eax, -72040(%rbp)
.L10:
	addl	$1, -72052(%rbp)
.L8:
	movl	-72052(%rbp), %eax
	cltq
	movl	-72032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L11
	movl	$0, -72052(%rbp)
	jmp	.L12
.L15:
	movl	-72056(%rbp), %eax
	cmpl	%eax, -72036(%rbp)
	jg	.L13
	movl	-72052(%rbp), %eax
	cltq
	movl	-40032(%rbp,%rax,4), %eax
	addl	%eax, -72036(%rbp)
	jmp	.L14
.L13:
	movl	-72052(%rbp), %eax
	cltq
	movl	-40032(%rbp,%rax,4), %eax
	subl	%eax, -72036(%rbp)
.L14:
	addl	$1, -72052(%rbp)
.L12:
	movl	-72052(%rbp), %eax
	cltq
	movl	-40032(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L15
	movl	-72060(%rbp), %eax
	cmpl	%eax, -72040(%rbp)
	jne	.L16
	movl	-72056(%rbp), %eax
	cmpl	%eax, -72036(%rbp)
	jne	.L16
	leaq	.LC2(%rip), %rax
	jmp	.L17
.L16:
	leaq	.LC3(%rip), %rax
.L17:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	comp
	.type	comp, @function
comp:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L21
	movl	$-1, %eax
	jmp	.L20
.L21:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jne	.L23
	movl	$0, %eax
	jmp	.L20
.L23:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L24
	movl	$1, %eax
	jmp	.L20
.L24:
.L20:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	comp, .-comp
	.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:
