	.file	"960811.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"\n%[^ ] "
.LC2:
	.string	"%[^\n]\n"
.LC3:
	.string	"\n--------------------\n"
.LC4:
	.string	"%d "
.LC5:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L53:
	lea	rax, -140[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -140[rbp]
	test	eax, eax
	jne	.L2
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L54
	jmp	.L55
.L2:
	mov	DWORD PTR -136[rbp], 0
	jmp	.L4
.L7:
	mov	DWORD PTR -132[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	DWORD PTR -64[rbp+rax*4], 0
	add	DWORD PTR -132[rbp], 1
.L5:
	cmp	DWORD PTR -132[rbp], 2
	jle	.L6
	add	DWORD PTR -136[rbp], 1
.L4:
	cmp	DWORD PTR -136[rbp], 2
	jle	.L7
	mov	DWORD PTR -128[rbp], 0
	mov	DWORD PTR -124[rbp], 0
	jmp	.L8
.L18:
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -19[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -24[rbp]
	cmp	al, 117
	jne	.L9
	movzx	eax, BYTE PTR -19[rbp]
	cmp	al, 99
	jne	.L9
	mov	eax, DWORD PTR -64[rbp]
	add	eax, 1
	mov	DWORD PTR -64[rbp], eax
	jmp	.L10
.L9:
	movzx	eax, BYTE PTR -24[rbp]
	cmp	al, 117
	jne	.L11
	movzx	eax, BYTE PTR -19[rbp]
	cmp	al, 116
	jne	.L11
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1
	mov	DWORD PTR -52[rbp], eax
	jmp	.L10
.L11:
	movzx	eax, BYTE PTR -24[rbp]
	cmp	al, 117
	jne	.L12
	movzx	eax, BYTE PTR -19[rbp]
	cmp	al, 113
	jne	.L12
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	mov	DWORD PTR -40[rbp], eax
	jmp	.L10
.L12:
	movzx	eax, BYTE PTR -24[rbp]
	cmp	al, 100
	jne	.L13
	movzx	eax, BYTE PTR -19[rbp]
	cmp	al, 99
	jne	.L13
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 1
	mov	DWORD PTR -60[rbp], eax
	jmp	.L10
.L13:
	movzx	eax, BYTE PTR -24[rbp]
	cmp	al, 100
	jne	.L14
	movzx	eax, BYTE PTR -19[rbp]
	cmp	al, 116
	jne	.L14
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 1
	mov	DWORD PTR -48[rbp], eax
	jmp	.L10
.L14:
	movzx	eax, BYTE PTR -24[rbp]
	cmp	al, 100
	jne	.L15
	movzx	eax, BYTE PTR -19[rbp]
	cmp	al, 113
	jne	.L15
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	mov	DWORD PTR -36[rbp], eax
	jmp	.L10
.L15:
	movzx	eax, BYTE PTR -24[rbp]
	cmp	al, 116
	jne	.L16
	movzx	eax, BYTE PTR -19[rbp]
	cmp	al, 99
	jne	.L16
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	mov	DWORD PTR -56[rbp], eax
	jmp	.L10
.L16:
	movzx	eax, BYTE PTR -24[rbp]
	cmp	al, 116
	jne	.L17
	movzx	eax, BYTE PTR -19[rbp]
	cmp	al, 116
	jne	.L17
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 1
	mov	DWORD PTR -44[rbp], eax
	jmp	.L10
.L17:
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	mov	DWORD PTR -32[rbp], eax
.L10:
	add	DWORD PTR -124[rbp], 1
.L8:
	mov	eax, DWORD PTR -140[rbp]
	cmp	DWORD PTR -124[rbp], eax
	jl	.L18
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -120[rbp], 0
	jmp	.L19
.L22:
	mov	DWORD PTR -116[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -116[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -116[rbp], 1
.L20:
	cmp	DWORD PTR -116[rbp], 2
	jle	.L21
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -120[rbp], 1
.L19:
	cmp	DWORD PTR -120[rbp], 2
	jle	.L22
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -112[rbp], 0
	jmp	.L23
.L37:
	mov	DWORD PTR -108[rbp], 0
	jmp	.L24
.L36:
	mov	eax, DWORD PTR -108[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -112[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	test	eax, eax
	je	.L25
	mov	DWORD PTR -104[rbp], 0
	jmp	.L26
.L35:
	mov	DWORD PTR -100[rbp], 0
	jmp	.L27
.L34:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	je	.L28
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	je	.L28
	mov	eax, DWORD PTR -100[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	test	eax, eax
	je	.L28
	mov	eax, DWORD PTR -108[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -112[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	test	eax, eax
	je	.L28
	mov	DWORD PTR -96[rbp], 0
	jmp	.L29
.L33:
	mov	DWORD PTR -92[rbp], 0
	jmp	.L30
.L32:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	je	.L31
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	je	.L31
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	je	.L31
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	je	.L31
	mov	eax, DWORD PTR -92[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	test	eax, eax
	je	.L31
	mov	eax, DWORD PTR -100[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	test	eax, eax
	je	.L31
	mov	eax, DWORD PTR -108[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -112[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	test	eax, eax
	je	.L31
	add	DWORD PTR -128[rbp], 1
	mov	eax, DWORD PTR -108[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -112[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -108[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -112[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rsi
	mov	DWORD PTR -64[rbp+rax*4], ecx
	mov	eax, DWORD PTR -100[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -100[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rsi
	mov	DWORD PTR -64[rbp+rax*4], ecx
	mov	eax, DWORD PTR -92[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rsi
	mov	DWORD PTR -64[rbp+rax*4], ecx
.L31:
	add	DWORD PTR -92[rbp], 1
.L30:
	cmp	DWORD PTR -92[rbp], 2
	jle	.L32
	add	DWORD PTR -96[rbp], 1
.L29:
	cmp	DWORD PTR -96[rbp], 2
	jle	.L33
.L28:
	add	DWORD PTR -100[rbp], 1
.L27:
	cmp	DWORD PTR -100[rbp], 2
	jle	.L34
	add	DWORD PTR -104[rbp], 1
.L26:
	cmp	DWORD PTR -104[rbp], 2
	jle	.L35
.L25:
	add	DWORD PTR -108[rbp], 1
.L24:
	cmp	DWORD PTR -108[rbp], 2
	jle	.L36
	add	DWORD PTR -112[rbp], 1
.L23:
	cmp	DWORD PTR -112[rbp], 2
	jle	.L37
	mov	DWORD PTR -88[rbp], 0
	jmp	.L38
.L42:
	mov	DWORD PTR -84[rbp], 0
	jmp	.L39
.L41:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	cmp	eax, 2
	jle	.L40
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	add	DWORD PTR -128[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	edx, DWORD PTR -64[rbp+rax*4]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	edx, DWORD PTR -84[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -88[rbp]
	movsx	rcx, edx
	mov	rdx, rcx
	add	rdx, rdx
	add	rdx, rcx
	add	rdx, rsi
	mov	DWORD PTR -64[rbp+rdx*4], eax
.L40:
	add	DWORD PTR -84[rbp], 1
.L39:
	cmp	DWORD PTR -84[rbp], 2
	jle	.L41
	add	DWORD PTR -88[rbp], 1
.L38:
	cmp	DWORD PTR -88[rbp], 2
	jle	.L42
	mov	DWORD PTR -80[rbp], 0
	jmp	.L43
.L45:
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 64
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L44
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 60
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L44
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 56
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L44
	add	DWORD PTR -128[rbp], 1
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 64
	mov	eax, DWORD PTR [rax]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 64
	mov	DWORD PTR [rax], ecx
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 60
	mov	eax, DWORD PTR [rax]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 60
	mov	DWORD PTR [rax], ecx
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 56
	mov	eax, DWORD PTR [rax]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 56
	mov	DWORD PTR [rax], ecx
.L44:
	add	DWORD PTR -80[rbp], 1
.L43:
	cmp	DWORD PTR -80[rbp], 2
	jle	.L45
	mov	DWORD PTR -76[rbp], 0
	jmp	.L46
.L48:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	test	eax, eax
	je	.L47
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	add	rax, 3
	mov	eax, DWORD PTR -64[rbp+rax*4]
	test	eax, eax
	je	.L47
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	add	rax, 6
	mov	eax, DWORD PTR -64[rbp+rax*4]
	test	eax, eax
	je	.L47
	add	DWORD PTR -128[rbp], 1
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	DWORD PTR -64[rbp+rax*4], edx
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	add	rax, 3
	mov	eax, DWORD PTR -64[rbp+rax*4]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	add	rax, 3
	mov	DWORD PTR -64[rbp+rax*4], edx
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	add	rax, 6
	mov	eax, DWORD PTR -64[rbp+rax*4]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	add	rax, 6
	mov	DWORD PTR -64[rbp+rax*4], edx
.L47:
	add	DWORD PTR -76[rbp], 1
.L46:
	cmp	DWORD PTR -76[rbp], 2
	jle	.L48
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -72[rbp], 0
	jmp	.L49
.L52:
	mov	DWORD PTR -68[rbp], 0
	jmp	.L50
.L51:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -64[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -68[rbp], 1
.L50:
	cmp	DWORD PTR -68[rbp], 2
	jle	.L51
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -72[rbp], 1
.L49:
	cmp	DWORD PTR -72[rbp], 2
	jle	.L52
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L53
.L55:
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"960811.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"\012%[^ ] \000"
	.align	2
.LC2:
	.ascii	"%[^\012]\012\000"
	.align	2
.LC3:
	.ascii	"\012--------------------\012\000"
	.align	2
.LC4:
	.ascii	"%d \000"
	.align	2
.LC5:
	.ascii	"%d\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L53:
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, .L56+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	ldr	r2, .L56
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L54
	b	.L55
.L2:
	mov	r3, #0
	str	r3, [fp, #-136]
	b	.L4
.L7:
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L5
.L6:
	ldr	r2, [fp, #-136]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-132]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-60]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L5:
	ldr	r3, [fp, #-132]
	cmp	r3, #2
	ble	.L6
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
.L4:
	ldr	r3, [fp, #-136]
	cmp	r3, #2
	ble	.L7
	mov	r3, #0
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L8
.L18:
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L56+8
	bl	__isoc99_scanf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L56+12
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	cmp	r3, #117
	bne	.L9
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L9
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	b	.L10
.L9:
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	cmp	r3, #117
	bne	.L11
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #116
	bne	.L11
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
	b	.L10
.L11:
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	cmp	r3, #117
	bne	.L12
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #113
	bne	.L12
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L10
.L12:
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	cmp	r3, #100
	bne	.L13
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L13
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	b	.L10
.L13:
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	cmp	r3, #100
	bne	.L14
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #116
	bne	.L14
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L10
.L14:
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	cmp	r3, #100
	bne	.L15
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #113
	bne	.L15
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L10
.L15:
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	cmp	r3, #116
	bne	.L16
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L16
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	b	.L10
.L16:
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	cmp	r3, #116
	bne	.L17
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #116
	bne	.L17
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L10
.L17:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L10:
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L8:
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-124]
	cmp	r2, r3
	blt	.L18
	ldr	r0, .L56+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L19
.L22:
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L20
.L21:
	ldr	r2, [fp, #-120]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-116]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	mov	r1, r3
	ldr	r0, .L56+20
	bl	printf
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L20:
	ldr	r3, [fp, #-116]
	cmp	r3, #2
	ble	.L21
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L19:
	ldr	r3, [fp, #-120]
	cmp	r3, #2
	ble	.L22
	ldr	r0, .L56+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L23
.L37:
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L24
.L36:
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-108]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	beq	.L25
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L26
.L35:
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L27
.L34:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	beq	.L28
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	beq	.L28
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-100]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	beq	.L28
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-108]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	beq	.L28
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L29
.L33:
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L30
.L32:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	beq	.L31
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	beq	.L31
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	beq	.L31
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	beq	.L31
	ldr	r2, [fp, #-96]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-92]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	beq	.L31
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-100]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	beq	.L31
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-108]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-108]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	sub	r1, r3, #1
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-108]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-60]
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-100]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	sub	r1, r3, #1
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-100]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-60]
	ldr	r2, [fp, #-96]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-92]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	sub	r1, r3, #1
	ldr	r2, [fp, #-96]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-92]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-60]
.L31:
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L30:
	ldr	r3, [fp, #-92]
	cmp	r3, #2
	ble	.L32
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L29:
	ldr	r3, [fp, #-96]
	cmp	r3, #2
	ble	.L33
.L28:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L27:
	ldr	r3, [fp, #-100]
	cmp	r3, #2
	ble	.L34
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L26:
	ldr	r3, [fp, #-104]
	cmp	r3, #2
	ble	.L35
.L25:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L24:
	ldr	r3, [fp, #-108]
	cmp	r3, #2
	ble	.L36
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L23:
	ldr	r3, [fp, #-112]
	cmp	r3, #2
	ble	.L37
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L38
.L42:
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L39
.L41:
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	cmp	r3, #2
	ble	.L40
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	ldr	r2, .L56+24
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r3, r2, r3
	ldr	r2, [fp, #-128]
	add	r3, r2, r3
	str	r3, [fp, #-128]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-60]
	ldr	r3, .L56+24
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r1, [fp, #-88]
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	ldr	r1, [fp, #-84]
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-60]
.L40:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L39:
	ldr	r3, [fp, #-84]
	cmp	r3, #2
	ble	.L41
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L38:
	ldr	r3, [fp, #-88]
	cmp	r3, #2
	ble	.L42
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L43
.L45:
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #60
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L44
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #56
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L44
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #52
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #60
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #60
	str	r1, [r3]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #56
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #56
	str	r1, [r3]
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #52
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #52
	str	r1, [r3]
.L44:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L43:
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	ble	.L45
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L46
.L48:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-76]
	add	r3, r3, #3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-76]
	add	r3, r3, #6
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	sub	r2, r3, #1
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-60]
	ldr	r3, [fp, #-76]
	add	r3, r3, #3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	sub	r2, r3, #1
	ldr	r3, [fp, #-76]
	add	r3, r3, #3
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-60]
	ldr	r3, [fp, #-76]
	add	r3, r3, #6
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	sub	r2, r3, #1
	ldr	r3, [fp, #-76]
	add	r3, r3, #6
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-60]
.L47:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L46:
	ldr	r3, [fp, #-76]
	cmp	r3, #2
	ble	.L48
	ldr	r1, [fp, #-128]
	ldr	r0, .L56+28
	bl	printf
	ldr	r0, .L56+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L49
.L52:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L50
.L51:
	ldr	r2, [fp, #-72]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-68]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	mov	r1, r3
	ldr	r0, .L56+20
	bl	printf
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L50:
	ldr	r3, [fp, #-68]
	cmp	r3, #2
	ble	.L51
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L49:
	ldr	r3, [fp, #-72]
	cmp	r3, #2
	ble	.L52
	ldr	r0, .L56+16
	bl	puts
	b	.L53
.L55:
	bl	__stack_chk_fail
.L54:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1431655766
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
