	.file	"57948987.c"
	.intel_syntax noprefix
	.text
	.globl	min
	.type	min, @function
min:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jge	.L2
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -8[rbp]
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 392
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	QWORD PTR -424[rbp], rax
	mov	DWORD PTR -148[rbp], 9999
	lea	rax, -240[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	esi, DWORD PTR -240[rbp]
	mov	edi, DWORD PTR -240[rbp]
	movsx	rax, esi
	sub	rax, 1
	mov	QWORD PTR -144[rbp], rax
	movsx	rax, esi
	mov	QWORD PTR -288[rbp], rax
	mov	QWORD PTR -280[rbp], 0
	movsx	rax, esi
	lea	rbx, 0[0+rax*4]
	movsx	rax, edi
	sub	rax, 1
	mov	QWORD PTR -136[rbp], rax
	movsx	rax, esi
	mov	r14, rax
	mov	r15d, 0
	movsx	rax, edi
	mov	r12, rax
	mov	r13d, 0
	mov	rdx, r15
	imul	rdx, r12
	mov	rax, r13
	imul	rax, r14
	lea	rcx, [rdx+rax]
	mov	rax, r14
	mul	r12
	add	rcx, rdx
	mov	rdx, rcx
	movsx	rax, esi
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	movsx	rax, edi
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], 0
	mov	r8, QWORD PTR -256[rbp]
	mov	r9, QWORD PTR -248[rbp]
	mov	rdx, r9
	mov	r10, QWORD PTR -272[rbp]
	mov	r11, QWORD PTR -264[rbp]
	imul	rdx, r10
	mov	rax, r11
	imul	rax, r8
	lea	rcx, [rdx+rax]
	mov	rax, r8
	mul	r10
	add	rcx, rdx
	mov	rdx, rcx
	movsx	rdx, esi
	movsx	rax, edi
	imul	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L5:
	cmp	rsp, rcx
	je	.L6
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L5
.L6:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L7
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L7:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -128[rbp], rax
	mov	edx, DWORD PTR -240[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -120[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -304[rbp], rax
	mov	QWORD PTR -296[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -320[rbp], rax
	mov	QWORD PTR -312[rbp], 0
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L8:
	cmp	rsp, rcx
	je	.L9
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L8
.L9:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L10
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L10:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -112[rbp], rax
	mov	edx, DWORD PTR -240[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -104[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -336[rbp], rax
	mov	QWORD PTR -328[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -352[rbp], rax
	mov	QWORD PTR -344[rbp], 0
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L11:
	cmp	rsp, rdx
	je	.L12
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L11
.L12:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L13
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L13:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -240[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -368[rbp], rdx
	mov	QWORD PTR -360[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -384[rbp], rdx
	mov	QWORD PTR -376[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L14:
	cmp	rsp, rdx
	je	.L15
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L14
.L15:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L16
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L16:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -240[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -400[rbp], rdx
	mov	QWORD PTR -392[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -416[rbp], rdx
	mov	QWORD PTR -408[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L17:
	cmp	rsp, rdx
	je	.L18
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L17
.L18:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L19
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L19:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -172[rbp], 0
	jmp	.L20
.L23:
	mov	DWORD PTR -176[rbp], 0
	jmp	.L21
.L22:
	mov	rdx, rbx
	shr	rdx, 2
	mov	eax, DWORD PTR -176[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	imul	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -176[rbp], 1
.L21:
	mov	eax, DWORD PTR -240[rbp]
	cmp	DWORD PTR -176[rbp], eax
	jl	.L22
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	add	DWORD PTR -172[rbp], 1
.L20:
	mov	eax, DWORD PTR -240[rbp]
	cmp	DWORD PTR -172[rbp], eax
	jl	.L23
	mov	DWORD PTR -180[rbp], 0
	jmp	.L24
.L27:
	mov	DWORD PTR -184[rbp], 0
	jmp	.L25
.L26:
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -180[rbp]
	movsx	rdx, edx
	mov	esi, DWORD PTR [rax+rdx*4]
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -128[rbp]
	mov	edx, DWORD PTR -184[rbp]
	movsx	rdi, edx
	mov	edx, DWORD PTR -180[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rdi
	mov	eax, DWORD PTR [rax+rdx*4]
	lea	ecx, [rsi+rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -180[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -180[rbp]
	movsx	rdx, edx
	mov	esi, DWORD PTR [rax+rdx*4]
	mov	rcx, rbx
	shr	rcx, 2
	mov	rax, QWORD PTR -128[rbp]
	mov	edx, DWORD PTR -180[rbp]
	movsx	rdi, edx
	mov	edx, DWORD PTR -184[rbp]
	movsx	rdx, edx
	imul	rdx, rcx
	add	rdx, rdi
	mov	eax, DWORD PTR [rax+rdx*4]
	lea	ecx, [rsi+rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -180[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -184[rbp], 1
.L25:
	mov	eax, DWORD PTR -240[rbp]
	cmp	DWORD PTR -184[rbp], eax
	jl	.L26
	add	DWORD PTR -180[rbp], 1
.L24:
	mov	eax, DWORD PTR -240[rbp]
	cmp	DWORD PTR -180[rbp], eax
	jl	.L27
	mov	eax, DWORD PTR -240[rbp]
	mov	DWORD PTR -188[rbp], eax
	jmp	.L28
.L52:
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -192[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -196[rbp], eax
	mov	DWORD PTR -200[rbp], 0
	mov	DWORD PTR -204[rbp], 0
	mov	DWORD PTR -208[rbp], 0
	jmp	.L29
.L32:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -208[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	jne	.L30
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -208[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -192[rbp], eax
	jle	.L30
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -208[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -192[rbp], eax
	mov	eax, DWORD PTR -208[rbp]
	mov	DWORD PTR -200[rbp], eax
.L30:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -208[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	jne	.L31
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -208[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -196[rbp], eax
	jle	.L31
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -208[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -196[rbp], eax
	mov	eax, DWORD PTR -208[rbp]
	mov	DWORD PTR -204[rbp], eax
.L31:
	add	DWORD PTR -208[rbp], 1
.L29:
	mov	eax, DWORD PTR -240[rbp]
	cmp	DWORD PTR -208[rbp], eax
	jl	.L32
	mov	eax, DWORD PTR -192[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jge	.L33
	cmp	DWORD PTR -192[rbp], 0
	jns	.L58
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -200[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 1
	mov	DWORD PTR -212[rbp], 0
	jmp	.L36
.L37:
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -212[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	rsi, rbx
	shr	rsi, 2
	mov	rax, QWORD PTR -128[rbp]
	mov	ecx, DWORD PTR -212[rbp]
	movsx	rdi, ecx
	mov	ecx, DWORD PTR -200[rbp]
	movsx	rcx, ecx
	imul	rcx, rsi
	add	rcx, rdi
	mov	eax, DWORD PTR [rax+rcx*4]
	mov	ecx, edx
	sub	ecx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -212[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -212[rbp], 1
.L36:
	mov	eax, DWORD PTR -240[rbp]
	cmp	DWORD PTR -212[rbp], eax
	jl	.L37
	mov	DWORD PTR -220[rbp], 9999
	mov	DWORD PTR -224[rbp], 0
	jmp	.L38
.L40:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -224[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	jne	.L39
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -224[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -220[rbp], eax
	jle	.L39
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -224[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -220[rbp], eax
	mov	eax, DWORD PTR -224[rbp]
	mov	DWORD PTR -216[rbp], eax
.L39:
	add	DWORD PTR -224[rbp], 1
.L38:
	mov	eax, DWORD PTR -240[rbp]
	cmp	DWORD PTR -224[rbp], eax
	jl	.L40
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -216[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 1
	mov	DWORD PTR -228[rbp], 0
	jmp	.L41
.L42:
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -228[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	rsi, rbx
	shr	rsi, 2
	mov	rax, QWORD PTR -128[rbp]
	mov	ecx, DWORD PTR -216[rbp]
	movsx	rdi, ecx
	mov	ecx, DWORD PTR -228[rbp]
	movsx	rcx, ecx
	imul	rcx, rsi
	add	rcx, rdi
	mov	eax, DWORD PTR [rax+rcx*4]
	mov	ecx, edx
	sub	ecx, eax
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -228[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -228[rbp], 1
.L41:
	mov	eax, DWORD PTR -240[rbp]
	cmp	DWORD PTR -228[rbp], eax
	jl	.L42
	jmp	.L43
.L33:
	cmp	DWORD PTR -196[rbp], 0
	jns	.L59
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -204[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 1
	mov	DWORD PTR -232[rbp], 0
	jmp	.L45
.L46:
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -232[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	rsi, rbx
	shr	rsi, 2
	mov	rax, QWORD PTR -128[rbp]
	mov	ecx, DWORD PTR -204[rbp]
	movsx	rdi, ecx
	mov	ecx, DWORD PTR -232[rbp]
	movsx	rcx, ecx
	imul	rcx, rsi
	add	rcx, rdi
	mov	eax, DWORD PTR [rax+rcx*4]
	mov	ecx, edx
	sub	ecx, eax
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -232[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -232[rbp], 1
.L45:
	mov	eax, DWORD PTR -240[rbp]
	cmp	DWORD PTR -232[rbp], eax
	jl	.L46
	mov	DWORD PTR -168[rbp], 9999
	mov	DWORD PTR -164[rbp], 0
	jmp	.L47
.L49:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	jne	.L48
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -168[rbp], eax
	jle	.L48
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -168[rbp], eax
	mov	eax, DWORD PTR -164[rbp]
	mov	DWORD PTR -236[rbp], eax
.L48:
	add	DWORD PTR -164[rbp], 1
.L47:
	mov	eax, DWORD PTR -240[rbp]
	cmp	DWORD PTR -164[rbp], eax
	jl	.L49
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -236[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 1
	mov	DWORD PTR -160[rbp], 0
	jmp	.L50
.L51:
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -160[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	rsi, rbx
	shr	rsi, 2
	mov	rax, QWORD PTR -128[rbp]
	mov	ecx, DWORD PTR -160[rbp]
	movsx	rdi, ecx
	mov	ecx, DWORD PTR -236[rbp]
	movsx	rcx, ecx
	imul	rcx, rsi
	add	rcx, rdi
	mov	eax, DWORD PTR [rax+rcx*4]
	mov	ecx, edx
	sub	ecx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -160[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -160[rbp], 1
.L50:
	mov	eax, DWORD PTR -240[rbp]
	cmp	DWORD PTR -160[rbp], eax
	jl	.L51
.L43:
	sub	DWORD PTR -188[rbp], 1
.L28:
	cmp	DWORD PTR -188[rbp], 1
	jg	.L52
	jmp	.L35
.L58:
	nop
	jmp	.L35
.L59:
	nop
.L35:
	mov	DWORD PTR -156[rbp], 0
	mov	DWORD PTR -152[rbp], 0
	jmp	.L53
.L55:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	jne	.L54
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	add	DWORD PTR -156[rbp], eax
.L54:
	add	DWORD PTR -152[rbp], 1
.L53:
	mov	eax, DWORD PTR -240[rbp]
	cmp	DWORD PTR -152[rbp], eax
	jl	.L55
	mov	eax, DWORD PTR -156[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsp, QWORD PTR -424[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"57948987.c"
	.text
	.align	2
	.global	min
	.syntax unified
	.arm
	.fpu softvfp
	.type	min, %function
min:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L2
	ldr	r3, [fp, #-8]
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	min, .-min
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #148
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	ldr	r3, .L45+4
	str	r3, [fp, #-80]
	sub	r3, fp, #172
	mov	r1, r3
	ldr	r0, .L45+8
	bl	__isoc99_scanf
	ldr	ip, [fp, #-172]
	ldr	lr, [fp, #-172]
	sub	r3, ip, #1
	str	r3, [fp, #-76]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r4, r3, #2
	sub	r3, lr, #1
	str	r3, [fp, #-72]
	mov	r3, ip
	mov	r6, r3
	mov	r7, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r7
	mul	r3, r6, r1
	add	r5, r2, r3
	umull	r2, r3, r6, r0
	add	r1, r5, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r6, r3
	mov	r7, #0
	mov	r3, lr
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r7
	mul	r3, r6, r1
	add	r5, r2, r3
	umull	r2, r3, r6, r0
	add	r1, r5, r3
	mov	r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r3, ip
	mov	r2, lr
	mul	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-68]
	ldr	ip, [fp, #-172]
	sub	r3, ip, #1
	str	r3, [fp, #-64]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-60]
	ldr	ip, [fp, #-172]
	sub	r3, ip, #1
	str	r3, [fp, #-56]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-52]
	ldr	ip, [fp, #-172]
	sub	r3, ip, #1
	str	r3, [fp, #-48]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-44]
	ldr	ip, [fp, #-172]
	sub	r3, ip, #1
	str	r3, [fp, #-40]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L5
.L8:
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L6
.L7:
	lsr	r3, r4, #2
	ldr	r2, [fp, #-104]
	mul	r2, r3, r2
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L45+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L6:
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-104]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-104]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-104]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-104]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L5:
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	blt	.L8
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L9
.L12:
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L10
.L11:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-112]
	ldr	r2, [r3, r2, lsl #2]
	lsr	r1, r4, #2
	ldr	r3, [fp, #-68]
	ldr	r0, [fp, #-112]
	mul	r0, r1, r0
	ldr	r1, [fp, #-116]
	add	r1, r0, r1
	ldr	r3, [r3, r1, lsl #2]
	add	r1, r2, r3
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-112]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-112]
	ldr	r2, [r3, r2, lsl #2]
	lsr	r1, r4, #2
	ldr	r3, [fp, #-68]
	ldr	r0, [fp, #-116]
	mul	r0, r1, r0
	ldr	r1, [fp, #-112]
	add	r1, r0, r1
	ldr	r3, [r3, r1, lsl #2]
	add	r1, r2, r3
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-112]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L10:
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L9:
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-172]
	str	r3, [fp, #-120]
	b	.L13
.L37:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-132]
	mov	r3, #0
	str	r3, [fp, #-136]
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L14
.L17:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-140]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-140]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-124]
	cmp	r2, r3
	ble	.L15
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-140]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-140]
	str	r3, [fp, #-132]
.L15:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-140]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-140]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-128]
	cmp	r2, r3
	ble	.L16
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-140]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-140]
	str	r3, [fp, #-136]
.L16:
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L14:
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-140]
	cmp	r2, r3
	blt	.L17
	ldr	r2, [fp, #-124]
	ldr	r3, [fp, #-128]
	cmp	r2, r3
	bge	.L18
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bge	.L43
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-132]
	mov	r1, #1
	str	r1, [r3, r2, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-144]
	b	.L21
.L22:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-144]
	ldr	r2, [r3, r2, lsl #2]
	lsr	r1, r4, #2
	ldr	r3, [fp, #-68]
	ldr	r0, [fp, #-132]
	mul	r0, r1, r0
	ldr	r1, [fp, #-144]
	add	r1, r0, r1
	ldr	r3, [r3, r1, lsl #2]
	sub	r1, r2, r3
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-144]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
.L21:
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-144]
	cmp	r2, r3
	blt	.L22
	ldr	r3, .L45+4
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L23
.L25:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-156]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-156]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	ble	.L24
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-156]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-156]
	str	r3, [fp, #-148]
.L24:
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L23:
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-156]
	cmp	r2, r3
	blt	.L25
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-148]
	mov	r1, #1
	str	r1, [r3, r2, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L26
.L27:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-160]
	ldr	r2, [r3, r2, lsl #2]
	lsr	r1, r4, #2
	ldr	r3, [fp, #-68]
	ldr	r0, [fp, #-160]
	mul	r0, r1, r0
	ldr	r1, [fp, #-148]
	add	r1, r0, r1
	ldr	r3, [r3, r1, lsl #2]
	sub	r1, r2, r3
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-160]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L26:
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-160]
	cmp	r2, r3
	blt	.L27
	b	.L28
.L18:
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bge	.L44
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-136]
	mov	r1, #1
	str	r1, [r3, r2, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-164]
	b	.L30
.L31:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-164]
	ldr	r2, [r3, r2, lsl #2]
	lsr	r1, r4, #2
	ldr	r3, [fp, #-68]
	ldr	r0, [fp, #-164]
	mul	r0, r1, r0
	ldr	r1, [fp, #-136]
	add	r1, r0, r1
	ldr	r3, [r3, r1, lsl #2]
	sub	r1, r2, r3
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-164]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
.L30:
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-164]
	cmp	r2, r3
	blt	.L31
	ldr	r3, .L45+4
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L32
.L34:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-100]
	cmp	r2, r3
	ble	.L33
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-168]
.L33:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L32:
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	blt	.L34
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-168]
	mov	r1, #1
	str	r1, [r3, r2, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L35
.L36:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-92]
	ldr	r2, [r3, r2, lsl #2]
	lsr	r1, r4, #2
	ldr	r3, [fp, #-68]
	ldr	r0, [fp, #-168]
	mul	r0, r1, r0
	ldr	r1, [fp, #-92]
	add	r1, r0, r1
	ldr	r3, [r3, r1, lsl #2]
	sub	r1, r2, r3
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-92]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L35:
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	blt	.L36
.L28:
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	str	r3, [fp, #-120]
.L13:
	ldr	r3, [fp, #-120]
	cmp	r3, #1
	bgt	.L37
	b	.L20
.L43:
	nop
	b	.L20
.L44:
	nop
.L20:
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L38
.L40:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-84]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-84]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	str	r3, [fp, #-88]
.L39:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L38:
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	blt	.L40
	ldr	r1, [fp, #-88]
	ldr	r0, .L45+12
	bl	printf
	mov	r3, #0
	mov	sp, r8
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC2
	.word	9999
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
