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 <string.h>
int main() {
	char s[51];
	int n, alCnt[50][26] = {0}, min;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%s", s);
		for (int j = 0; j < strlen(s); j++) {
			alCnt[i][s[j] - 'a']++;
		}
	}
	for (int i = 0; i < 26; i++) {
		min = 50;
		for (int j = 0; j < n; j++) {
			if (alCnt[j][i] < min) {
				min = alCnt[j][i];
			}
		}
		for (int j = 0; j < min; j++) {
			printf("%c", i + 'a');
		}
	}
	printf("\n");
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1192, %rsp
	.cfi_def_cfa_offset 5344
	movl	$650, %ecx
	movq	%fs:40, %rax
	movq	%rax, 5272(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebp, %ebp
	leaq	5216(%rsp), %r15
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	call	__isoc99_scanf@PLT
	movslq	%ebp, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rbx
	addq	%rbx, %rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movsbl	(%r15,%r14), %eax
	addq	$1, %r14
	subl	$97, %eax
	cltq
	addq	%rbx, %rax
	addl	$1, 16(%rsp,%rax,4)
.L3:
	movq	%r15, %rdi
	call	strlen@PLT
	cmpq	%r14, %rax
	ja	.L4
	movl	12(%rsp), %eax
	addl	$1, %ebp
	cmpl	%ebp, %eax
	jg	.L5
.L2:
	xorl	%r12d, %r12d
	leaq	120(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$50, %ebx
	testl	%eax, %eax
	jle	.L8
	subl	$1, %eax
	movl	$50, %ebx
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rax
	leaq	(%r12,%rax,2), %rax
	leaq	(%r14,%rax,4), %rcx
	movq	%r13, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rax), %edx
	cmpl	%edx, %ebx
	cmovg	%edx, %ebx
	addq	$104, %rax
	cmpq	%rcx, %rax
	jne	.L7
	testl	%ebx, %ebx
	jle	.L12
.L8:
	leal	97(%r12), %r15d
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r15d, %edi
	addl	$1, %ebp
	call	putchar@PLT
	cmpl	%ebp, %ebx
	jg	.L11
.L12:
	addq	$1, %r12
	addq	$4, %r13
	cmpq	$26, %r12
	je	.L21
	movl	12(%rsp), %eax
	jmp	.L6
.L21:
	movl	$10, %edi
	call	putchar@PLT
	movq	5272(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$5288, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1192, %rsp
	.cfi_def_cfa_offset 5344
	movl	$650, %ecx
	movq	%fs:40, %rax
	movq	%rax, 5272(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebp, %ebp
	leaq	5216(%rsp), %r15
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	call	__isoc99_scanf@PLT
	movslq	%ebp, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rbx
	addq	%rbx, %rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movsbl	(%r15,%r14), %eax
	addq	$1, %r14
	subl	$97, %eax
	cltq
	addq	%rbx, %rax
	addl	$1, 16(%rsp,%rax,4)
.L3:
	movq	%r15, %rdi
	call	strlen@PLT
	cmpq	%r14, %rax
	ja	.L4
	movl	12(%rsp), %eax
	addl	$1, %ebp
	cmpl	%ebp, %eax
	jg	.L5
.L2:
	xorl	%r12d, %r12d
	leaq	120(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$50, %ebx
	testl	%eax, %eax
	jle	.L8
	subl	$1, %eax
	movl	$50, %ebx
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rax
	leaq	(%r12,%rax,2), %rax
	leaq	(%r14,%rax,4), %rcx
	movq	%r13, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rax), %edx
	cmpl	%edx, %ebx
	cmovg	%edx, %ebx
	addq	$104, %rax
	cmpq	%rcx, %rax
	jne	.L7
	testl	%ebx, %ebx
	jle	.L12
.L8:
	leal	97(%r12), %r15d
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r15d, %edi
	addl	$1, %ebp
	call	putchar@PLT
	cmpl	%ebp, %ebx
	jg	.L11
.L12:
	addq	$1, %r12
	addq	$4, %r13
	cmpq	$26, %r12
	je	.L21
	movl	12(%rsp), %eax
	jmp	.L6
.L21:
	movl	$10, %edi
	call	putchar@PLT
	movq	5272(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$5288, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1192, %rsp
	.cfi_def_cfa_offset 5344
	movl	$650, %ecx
	movq	%fs:40, %rax
	movq	%rax, 5272(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebp, %ebp
	leaq	5216(%rsp), %r15
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	call	__isoc99_scanf@PLT
	movslq	%ebp, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rbx
	addq	%rbx, %rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movsbl	(%r15,%r14), %eax
	addq	$1, %r14
	subl	$97, %eax
	cltq
	addq	%rbx, %rax
	addl	$1, 16(%rsp,%rax,4)
.L3:
	movq	%r15, %rdi
	call	strlen@PLT
	cmpq	%r14, %rax
	ja	.L4
	movl	12(%rsp), %eax
	addl	$1, %ebp
	cmpl	%ebp, %eax
	jg	.L5
.L2:
	xorl	%r12d, %r12d
	leaq	120(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$50, %ebx
	testl	%eax, %eax
	jle	.L8
	subl	$1, %eax
	movl	$50, %ebx
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rax
	leaq	(%r12,%rax,2), %rax
	leaq	(%r14,%rax,4), %rcx
	movq	%r13, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rax), %edx
	cmpl	%edx, %ebx
	cmovg	%edx, %ebx
	addq	$104, %rax
	cmpq	%rcx, %rax
	jne	.L7
	testl	%ebx, %ebx
	jle	.L12
.L8:
	leal	97(%r12), %r15d
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r15d, %edi
	addl	$1, %ebp
	call	putchar@PLT
	cmpl	%ebp, %ebx
	jg	.L11
.L12:
	addq	$1, %r12
	addq	$4, %r13
	cmpq	$26, %r12
	je	.L21
	movl	12(%rsp), %eax
	jmp	.L6
.L21:
	movl	$10, %edi
	call	putchar@PLT
	movq	5272(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$5288, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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 <string.h>
int main() {
	char s[51];
	int n, alCnt[50][26] = {0}, min;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%s", s);
		for (int j = 0; j < strlen(s); j++) {
			alCnt[i][s[j] - 'a']++;
		}
	}
	for (int i = 0; i < 26; i++) {
		min = 50;
		for (int j = 0; j < n; j++) {
			if (alCnt[j][i] < min) {
				min = alCnt[j][i];
			}
		}
		for (int j = 0; j < min; j++) {
			printf("%c", i + 'a');
		}
	}
	printf("\n");
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <string.h>
int main() {
	char s[51];
	int n, alCnt[50][26] = {0}, min;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%s", s);
		for (int j = 0; j < strlen(s); j++) {
			alCnt[i][s[j] - 'a']++;
		}
	}
	for (int i = 0; i < 26; i++) {
		min = 50;
		for (int j = 0; j < n; j++) {
			if (alCnt[j][i] < min) {
				min = alCnt[j][i];
			}
		}
		for (int j = 0; j < min; j++) {
			printf("%c", i + 'a');
		}
	}
	printf("\n");
	return 0;
}```

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:

3
caaa
daacc
acacac
 3
caaa
d`acc
acacac
 3
aaca
bdb`c
acacac
 3
a
aa
a
 3
caca
cca`d
acacac
 3
acba
da`cb
acacbc
 3
_a_b
c_bcb
abcada
 3
aad_
bdb_c
ababcd
 3
ba`c
bcb`c
abdbcb
 3
bcac
cc`be
acacbc

aac
 ac
 c
 a
 acc
 abc
 b
 d
 bc
 bcc

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 <string.h>
int main() {
	char s[51];
	int n, alCnt[50][26] = {0}, min;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%s", s);
		for (int j = 0; j < strlen(s); j++) {
			alCnt[i][s[j] - 'a']++;
		}
	}
	for (int i = 0; i < 26; i++) {
		min = 50;
		for (int j = 0; j < n; j++) {
			if (alCnt[j][i] < min) {
				min = alCnt[j][i];
			}
		}
		for (int j = 0; j < min; j++) {
			printf("%c", i + 'a');
		}
	}
	printf("\n");
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1192, %rsp
	.cfi_def_cfa_offset 5344
	movl	$650, %ecx
	movq	%fs:40, %rax
	movq	%rax, 5272(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebp, %ebp
	leaq	5216(%rsp), %r15
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	call	__isoc99_scanf@PLT
	movslq	%ebp, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rbx
	addq	%rbx, %rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movsbl	(%r15,%r14), %eax
	addq	$1, %r14
	subl	$97, %eax
	cltq
	addq	%rbx, %rax
	addl	$1, 16(%rsp,%rax,4)
.L3:
	movq	%r15, %rdi
	call	strlen@PLT
	cmpq	%r14, %rax
	ja	.L4
	movl	12(%rsp), %eax
	addl	$1, %ebp
	cmpl	%ebp, %eax
	jg	.L5
.L2:
	xorl	%r12d, %r12d
	leaq	120(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$50, %ebx
	testl	%eax, %eax
	jle	.L8
	subl	$1, %eax
	movl	$50, %ebx
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rax
	leaq	(%r12,%rax,2), %rax
	leaq	(%r14,%rax,4), %rcx
	movq	%r13, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rax), %edx
	cmpl	%edx, %ebx
	cmovg	%edx, %ebx
	addq	$104, %rax
	cmpq	%rcx, %rax
	jne	.L7
	testl	%ebx, %ebx
	jle	.L12
.L8:
	leal	97(%r12), %r15d
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r15d, %edi
	addl	$1, %ebp
	call	putchar@PLT
	cmpl	%ebp, %ebx
	jg	.L11
.L12:
	addq	$1, %r12
	addq	$4, %r13
	cmpq	$26, %r12
	je	.L21
	movl	12(%rsp), %eax
	jmp	.L6
.L21:
	movl	$10, %edi
	call	putchar@PLT
	movq	5272(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$5288, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$1192, %rsp
	.cfi_def_cfa_offset 5344
	movl	$650, %ecx
	movq	%fs:40, %rax
	movq	%rax, 5272(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebp, %ebp
	leaq	5216(%rsp), %r15
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	call	__isoc99_scanf@PLT
	movslq	%ebp, %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rbx
	addq	%rbx, %rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movsbl	(%r15,%r14), %eax
	addq	$1, %r14
	subl	$97, %eax
	cltq
	addq	%rbx, %rax
	addl	$1, 16(%rsp,%rax,4)
.L3:
	movq	%r15, %rdi
	call	strlen@PLT
	cmpq	%r14, %rax
	ja	.L4
	movl	12(%rsp), %eax
	addl	$1, %ebp
	cmpl	%ebp, %eax
	jg	.L5
.L2:
	xorl	%r12d, %r12d
	leaq	120(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$50, %ebx
	testl	%eax, %eax
	jle	.L8
	subl	$1, %eax
	movl	$50, %ebx
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rax,%rdx,4), %rax
	leaq	(%r12,%rax,2), %rax
	leaq	(%r14,%rax,4), %rcx
	movq	%r13, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rax), %edx
	cmpl	%edx, %ebx
	cmovg	%edx, %ebx
	addq	$104, %rax
	cmpq	%rcx, %rax
	jne	.L7
	testl	%ebx, %ebx
	jle	.L12
.L8:
	leal	97(%r12), %r15d
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r15d, %edi
	addl	$1, %ebp
	call	putchar@PLT
	cmpl	%ebp, %ebx
	jg	.L11
.L12:
	addq	$1, %r12
	addq	$4, %r13
	cmpq	$26, %r12
	je	.L21
	movl	12(%rsp), %eax
	jmp	.L6
.L21:
	movl	$10, %edi
	call	putchar@PLT
	movq	5272(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$5288, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
```