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

```c
#include <stdio.h>
#include <math.h>
#include <time.h>
#include<stdlib.h>
#include<string.h>

int main(void) {
    char s[11];
    int c = 0, ans = 0;

    scanf("%s", s);

    int l = strlen(s);

    for (int i = 2; i < l - 1; i++) {
        if (s[i] == 'C') {
            c++;
        }
    }

    for (int i = 0; i < l; i++) {
        if (s[i] < 'Z') {
            ans++;
        }
    }
    if (s[0] == 'A' && c == 1 && ans == 2) {
        printf("AC");
    }
    else {
        printf("WA");
    }
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"AC"
.LC2:
	.string	"WA"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	13(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jle	.L24
	xorl	%ecx, %ecx
	cmpb	$67, 15(%rsp)
	sete	%cl
	cmpl	$3, %edx
	je	.L2
	xorl	%esi, %esi
	cmpb	$67, 16(%rsp)
	sete	%sil
	addl	%esi, %ecx
	cmpl	$4, %edx
	je	.L2
	xorl	%esi, %esi
	cmpb	$67, 17(%rsp)
	sete	%sil
	addl	%esi, %ecx
	cmpl	$5, %edx
	je	.L2
	cmpb	$67, 18(%rsp)
	je	.L51
.L6:
	cmpl	$6, %edx
	je	.L2
	cmpb	$67, 19(%rsp)
	je	.L52
.L7:
	cmpl	$7, %edx
	je	.L2
	cmpb	$67, 20(%rsp)
	jne	.L8
	addl	$1, %ecx
.L8:
	cmpl	$9, %edx
	jne	.L2
	cmpb	$67, 21(%rsp)
	je	.L53
.L2:
	movzbl	13(%rsp), %esi
	testq	%rax, %rax
	je	.L11
	xorl	%edx, %edx
	cmpb	$89, %sil
	setle	%dl
	cmpl	$1, %eax
	je	.L11
	xorl	%edi, %edi
	cmpb	$90, 14(%rsp)
	setl	%dil
	addl	%edi, %edx
	cmpl	$2, %eax
	je	.L13
	xorl	%edi, %edi
	cmpb	$90, 15(%rsp)
	setl	%dil
	addl	%edi, %edx
	cmpl	$3, %eax
	je	.L13
	cmpb	$89, 16(%rsp)
	jle	.L54
.L15:
	cmpl	$4, %eax
	je	.L13
	cmpb	$89, 17(%rsp)
	jg	.L16
	addl	$1, %edx
.L16:
	cmpl	$5, %eax
	je	.L13
	cmpb	$89, 18(%rsp)
	jg	.L17
	addl	$1, %edx
.L17:
	cmpl	$6, %eax
	je	.L13
	cmpb	$89, 19(%rsp)
	jg	.L18
	addl	$1, %edx
.L18:
	cmpl	$7, %eax
	je	.L13
	cmpb	$89, 20(%rsp)
	jle	.L55
.L19:
	cmpl	$8, %eax
	je	.L13
	cmpb	$89, 21(%rsp)
	jle	.L56
.L20:
	cmpl	$10, %eax
	jne	.L13
	cmpb	$89, 22(%rsp)
	jg	.L13
	addl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpb	$65, %sil
	jne	.L11
	subl	$1, %ecx
	jne	.L11
	cmpl	$2, %edx
	jne	.L11
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L22:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L57
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L54:
	.cfi_restore_state
	addl	$1, %edx
	jmp	.L15
.L51:
	addl	$1, %ecx
	jmp	.L6
.L55:
	addl	$1, %edx
	jmp	.L19
.L56:
	addl	$1, %edx
	jmp	.L20
.L52:
	addl	$1, %ecx
	jmp	.L7
.L53:
	addl	$1, %ecx
	jmp	.L2
.L24:
	xorl	%ecx, %ecx
	jmp	.L2
.L57:
	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:
```

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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"AC"
.LC2:
	.string	"WA"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	13(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jle	.L24
	xorl	%ecx, %ecx
	cmpb	$67, 15(%rsp)
	sete	%cl
	cmpl	$3, %edx
	je	.L2
	xorl	%esi, %esi
	cmpb	$67, 16(%rsp)
	sete	%sil
	addl	%esi, %ecx
	cmpl	$4, %edx
	je	.L2
	xorl	%esi, %esi
	cmpb	$67, 17(%rsp)
	sete	%sil
	addl	%esi, %ecx
	cmpl	$5, %edx
	je	.L2
	cmpb	$67, 18(%rsp)
	je	.L51
.L6:
	cmpl	$6, %edx
	je	.L2
	cmpb	$67, 19(%rsp)
	je	.L52
.L7:
	cmpl	$7, %edx
	je	.L2
	cmpb	$67, 20(%rsp)
	jne	.L8
	addl	$1, %ecx
.L8:
	cmpl	$9, %edx
	jne	.L2
	cmpb	$67, 21(%rsp)
	je	.L53
.L2:
	movzbl	13(%rsp), %esi
	testq	%rax, %rax
	je	.L11
	xorl	%edx, %edx
	cmpb	$89, %sil
	setle	%dl
	cmpl	$1, %eax
	je	.L11
	xorl	%edi, %edi
	cmpb	$90, 14(%rsp)
	setl	%dil
	addl	%edi, %edx
	cmpl	$2, %eax
	je	.L13
	xorl	%edi, %edi
	cmpb	$90, 15(%rsp)
	setl	%dil
	addl	%edi, %edx
	cmpl	$3, %eax
	je	.L13
	cmpb	$89, 16(%rsp)
	jle	.L54
.L15:
	cmpl	$4, %eax
	je	.L13
	cmpb	$89, 17(%rsp)
	jg	.L16
	addl	$1, %edx
.L16:
	cmpl	$5, %eax
	je	.L13
	cmpb	$89, 18(%rsp)
	jg	.L17
	addl	$1, %edx
.L17:
	cmpl	$6, %eax
	je	.L13
	cmpb	$89, 19(%rsp)
	jg	.L18
	addl	$1, %edx
.L18:
	cmpl	$7, %eax
	je	.L13
	cmpb	$89, 20(%rsp)
	jle	.L55
.L19:
	cmpl	$8, %eax
	je	.L13
	cmpb	$89, 21(%rsp)
	jle	.L56
.L20:
	cmpl	$10, %eax
	jne	.L13
	cmpb	$89, 22(%rsp)
	jg	.L13
	addl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpb	$65, %sil
	jne	.L11
	subl	$1, %ecx
	jne	.L11
	cmpl	$2, %edx
	jne	.L11
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L22:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L57
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L54:
	.cfi_restore_state
	addl	$1, %edx
	jmp	.L15
.L51:
	addl	$1, %ecx
	jmp	.L6
.L55:
	addl	$1, %edx
	jmp	.L19
.L56:
	addl	$1, %edx
	jmp	.L20
.L52:
	addl	$1, %ecx
	jmp	.L7
.L53:
	addl	$1, %ecx
	jmp	.L2
.L24:
	xorl	%ecx, %ecx
	jmp	.L2
.L57:
	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"AC"
.LC2:
	.string	"WA"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	13(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jle	.L24
	xorl	%ecx, %ecx
	cmpb	$67, 15(%rsp)
	sete	%cl
	cmpl	$3, %edx
	je	.L2
	xorl	%esi, %esi
	cmpb	$67, 16(%rsp)
	sete	%sil
	addl	%esi, %ecx
	cmpl	$4, %edx
	je	.L2
	xorl	%esi, %esi
	cmpb	$67, 17(%rsp)
	sete	%sil
	addl	%esi, %ecx
	cmpl	$5, %edx
	je	.L2
	cmpb	$67, 18(%rsp)
	je	.L51
.L6:
	cmpl	$6, %edx
	je	.L2
	cmpb	$67, 19(%rsp)
	je	.L52
.L7:
	cmpl	$7, %edx
	je	.L2
	cmpb	$67, 20(%rsp)
	jne	.L8
	addl	$1, %ecx
.L8:
	cmpl	$9, %edx
	jne	.L2
	cmpb	$67, 21(%rsp)
	je	.L53
.L2:
	movzbl	13(%rsp), %esi
	testq	%rax, %rax
	je	.L11
	xorl	%edx, %edx
	cmpb	$89, %sil
	setle	%dl
	cmpl	$1, %eax
	je	.L11
	xorl	%edi, %edi
	cmpb	$90, 14(%rsp)
	setl	%dil
	addl	%edi, %edx
	cmpl	$2, %eax
	je	.L13
	xorl	%edi, %edi
	cmpb	$90, 15(%rsp)
	setl	%dil
	addl	%edi, %edx
	cmpl	$3, %eax
	je	.L13
	cmpb	$89, 16(%rsp)
	jle	.L54
.L15:
	cmpl	$4, %eax
	je	.L13
	cmpb	$89, 17(%rsp)
	jg	.L16
	addl	$1, %edx
.L16:
	cmpl	$5, %eax
	je	.L13
	cmpb	$89, 18(%rsp)
	jg	.L17
	addl	$1, %edx
.L17:
	cmpl	$6, %eax
	je	.L13
	cmpb	$89, 19(%rsp)
	jg	.L18
	addl	$1, %edx
.L18:
	cmpl	$7, %eax
	je	.L13
	cmpb	$89, 20(%rsp)
	jle	.L55
.L19:
	cmpl	$8, %eax
	je	.L13
	cmpb	$89, 21(%rsp)
	jle	.L56
.L20:
	cmpl	$10, %eax
	jne	.L13
	cmpb	$89, 22(%rsp)
	jg	.L13
	addl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpb	$65, %sil
	jne	.L11
	subl	$1, %ecx
	jne	.L11
	cmpl	$2, %edx
	jne	.L11
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L22:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L57
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L54:
	.cfi_restore_state
	addl	$1, %edx
	jmp	.L15
.L51:
	addl	$1, %ecx
	jmp	.L6
.L55:
	addl	$1, %edx
	jmp	.L19
.L56:
	addl	$1, %edx
	jmp	.L20
.L52:
	addl	$1, %ecx
	jmp	.L7
.L53:
	addl	$1, %ecx
	jmp	.L2
.L24:
	xorl	%ecx, %ecx
	jmp	.L2
.L57:
	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:
```
```c
#include <stdio.h>
#include <math.h>
#include <time.h>
#include<stdlib.h>
#include<string.h>

int main(void) {
    char s[11];
    int c = 0, ans = 0;

    scanf("%s", s);

    int l = strlen(s);

    for (int i = 2; i < l - 1; i++) {
        if (s[i] == 'C') {
            c++;
        }
    }

    for (int i = 0; i < l; i++) {
        if (s[i] < 'Z') {
            ans++;
        }
    }
    if (s[0] == 'A' && c == 1 && ans == 2) {
        printf("AC");
    }
    else {
        printf("WA");
    }
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <math.h>
#include <time.h>
#include<stdlib.h>
#include<string.h>

int main(void) {
    char s[11];
    int c = 0, ans = 0;

    scanf("%s", s);

    int l = strlen(s);

    for (int i = 2; i < l - 1; i++) {
        if (s[i] == 'C') {
            c++;
        }
    }

    for (int i = 0; i < l; i++) {
        if (s[i] < 'Z') {
            ans++;
        }
    }
    if (s[0] == 'A' && c == 1 && ans == 2) {
        printf("AC");
    }
    else {
        printf("WA");
    }
}```

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.
Optimized Assembly Code:

AtBoCo
 AtCoddr
 redoctA
 ACodes
 BcycliC
 etCodAr
 AtBnCo
 redpctA
 ACodds
 CilcycB

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

```c
#include <stdio.h>
#include <math.h>
#include <time.h>
#include<stdlib.h>
#include<string.h>

int main(void) {
    char s[11];
    int c = 0, ans = 0;

    scanf("%s", s);

    int l = strlen(s);

    for (int i = 2; i < l - 1; i++) {
        if (s[i] == 'C') {
            c++;
        }
    }

    for (int i = 0; i < l; i++) {
        if (s[i] < 'Z') {
            ans++;
        }
    }
    if (s[0] == 'A' && c == 1 && ans == 2) {
        printf("AC");
    }
    else {
        printf("WA");
    }
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"AC"
.LC2:
	.string	"WA"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	13(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jle	.L24
	xorl	%ecx, %ecx
	cmpb	$67, 15(%rsp)
	sete	%cl
	cmpl	$3, %edx
	je	.L2
	xorl	%esi, %esi
	cmpb	$67, 16(%rsp)
	sete	%sil
	addl	%esi, %ecx
	cmpl	$4, %edx
	je	.L2
	xorl	%esi, %esi
	cmpb	$67, 17(%rsp)
	sete	%sil
	addl	%esi, %ecx
	cmpl	$5, %edx
	je	.L2
	cmpb	$67, 18(%rsp)
	je	.L51
.L6:
	cmpl	$6, %edx
	je	.L2
	cmpb	$67, 19(%rsp)
	je	.L52
.L7:
	cmpl	$7, %edx
	je	.L2
	cmpb	$67, 20(%rsp)
	jne	.L8
	addl	$1, %ecx
.L8:
	cmpl	$9, %edx
	jne	.L2
	cmpb	$67, 21(%rsp)
	je	.L53
.L2:
	movzbl	13(%rsp), %esi
	testq	%rax, %rax
	je	.L11
	xorl	%edx, %edx
	cmpb	$89, %sil
	setle	%dl
	cmpl	$1, %eax
	je	.L11
	xorl	%edi, %edi
	cmpb	$90, 14(%rsp)
	setl	%dil
	addl	%edi, %edx
	cmpl	$2, %eax
	je	.L13
	xorl	%edi, %edi
	cmpb	$90, 15(%rsp)
	setl	%dil
	addl	%edi, %edx
	cmpl	$3, %eax
	je	.L13
	cmpb	$89, 16(%rsp)
	jle	.L54
.L15:
	cmpl	$4, %eax
	je	.L13
	cmpb	$89, 17(%rsp)
	jg	.L16
	addl	$1, %edx
.L16:
	cmpl	$5, %eax
	je	.L13
	cmpb	$89, 18(%rsp)
	jg	.L17
	addl	$1, %edx
.L17:
	cmpl	$6, %eax
	je	.L13
	cmpb	$89, 19(%rsp)
	jg	.L18
	addl	$1, %edx
.L18:
	cmpl	$7, %eax
	je	.L13
	cmpb	$89, 20(%rsp)
	jle	.L55
.L19:
	cmpl	$8, %eax
	je	.L13
	cmpb	$89, 21(%rsp)
	jle	.L56
.L20:
	cmpl	$10, %eax
	jne	.L13
	cmpb	$89, 22(%rsp)
	jg	.L13
	addl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpb	$65, %sil
	jne	.L11
	subl	$1, %ecx
	jne	.L11
	cmpl	$2, %edx
	jne	.L11
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L22:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L57
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L54:
	.cfi_restore_state
	addl	$1, %edx
	jmp	.L15
.L51:
	addl	$1, %ecx
	jmp	.L6
.L55:
	addl	$1, %edx
	jmp	.L19
.L56:
	addl	$1, %edx
	jmp	.L20
.L52:
	addl	$1, %ecx
	jmp	.L7
.L53:
	addl	$1, %ecx
	jmp	.L2
.L24:
	xorl	%ecx, %ecx
	jmp	.L2
.L57:
	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:
```

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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"AC"
.LC2:
	.string	"WA"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	13(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jle	.L24
	xorl	%ecx, %ecx
	cmpb	$67, 15(%rsp)
	sete	%cl
	cmpl	$3, %edx
	je	.L2
	xorl	%esi, %esi
	cmpb	$67, 16(%rsp)
	sete	%sil
	addl	%esi, %ecx
	cmpl	$4, %edx
	je	.L2
	xorl	%esi, %esi
	cmpb	$67, 17(%rsp)
	sete	%sil
	addl	%esi, %ecx
	cmpl	$5, %edx
	je	.L2
	cmpb	$67, 18(%rsp)
	je	.L51
.L6:
	cmpl	$6, %edx
	je	.L2
	cmpb	$67, 19(%rsp)
	je	.L52
.L7:
	cmpl	$7, %edx
	je	.L2
	cmpb	$67, 20(%rsp)
	jne	.L8
	addl	$1, %ecx
.L8:
	cmpl	$9, %edx
	jne	.L2
	cmpb	$67, 21(%rsp)
	je	.L53
.L2:
	movzbl	13(%rsp), %esi
	testq	%rax, %rax
	je	.L11
	xorl	%edx, %edx
	cmpb	$89, %sil
	setle	%dl
	cmpl	$1, %eax
	je	.L11
	xorl	%edi, %edi
	cmpb	$90, 14(%rsp)
	setl	%dil
	addl	%edi, %edx
	cmpl	$2, %eax
	je	.L13
	xorl	%edi, %edi
	cmpb	$90, 15(%rsp)
	setl	%dil
	addl	%edi, %edx
	cmpl	$3, %eax
	je	.L13
	cmpb	$89, 16(%rsp)
	jle	.L54
.L15:
	cmpl	$4, %eax
	je	.L13
	cmpb	$89, 17(%rsp)
	jg	.L16
	addl	$1, %edx
.L16:
	cmpl	$5, %eax
	je	.L13
	cmpb	$89, 18(%rsp)
	jg	.L17
	addl	$1, %edx
.L17:
	cmpl	$6, %eax
	je	.L13
	cmpb	$89, 19(%rsp)
	jg	.L18
	addl	$1, %edx
.L18:
	cmpl	$7, %eax
	je	.L13
	cmpb	$89, 20(%rsp)
	jle	.L55
.L19:
	cmpl	$8, %eax
	je	.L13
	cmpb	$89, 21(%rsp)
	jle	.L56
.L20:
	cmpl	$10, %eax
	jne	.L13
	cmpb	$89, 22(%rsp)
	jg	.L13
	addl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpb	$65, %sil
	jne	.L11
	subl	$1, %ecx
	jne	.L11
	cmpl	$2, %edx
	jne	.L11
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L22:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L57
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L54:
	.cfi_restore_state
	addl	$1, %edx
	jmp	.L15
.L51:
	addl	$1, %ecx
	jmp	.L6
.L55:
	addl	$1, %edx
	jmp	.L19
.L56:
	addl	$1, %edx
	jmp	.L20
.L52:
	addl	$1, %ecx
	jmp	.L7
.L53:
	addl	$1, %ecx
	jmp	.L2
.L24:
	xorl	%ecx, %ecx
	jmp	.L2
.L57:
	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:
```