	.file	"243394.c"
	.intel_syntax noprefix
	.text
	.globl	dis
	.bss
	.align 32
	.type	dis, @object
	.size	dis, 2020
dis:
	.zero	2020
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	W
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.globl	u
	.align 32
	.type	u, @object
	.size	u, 24020
u:
	.zero	24020
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 24020
v:
	.zero	24020
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 24020
w:
	.zero	24020
	.text
	.globl	init
	.type	init, @function
init:
.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 dis[rip+4], 0
	mov	DWORD PTR -4[rbp], 2
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dis[rip]
	mov	DWORD PTR [rdx+rax], 99999
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L3
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init, .-init
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d %d %d"
.LC3:
	.string	"YES"
.LC4:
	.string	"NO"
	.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
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L5
.L20:
	mov	DWORD PTR -16[rbp], 0
	lea	rcx, W[rip]
	lea	rdx, m[rip]
	lea	rsi, n[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	init
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -24[rbp], 1
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, w[rip]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, v[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rsi, 0[0+rax*4]
	lea	rax, u[rip]
	add	rax, rsi
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, v[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, u[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, u[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, v[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, w[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, w[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -24[rbp], 1
.L6:
	mov	eax, DWORD PTR m[rip]
	cmp	DWORD PTR -24[rbp], eax
	jle	.L7
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, w[rip]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, v[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rsi, 0[0+rax*4]
	lea	rax, u[rip]
	add	rax, rsi
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, w[rip]
	mov	eax, DWORD PTR [rdx+rax]
	neg	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, w[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -24[rbp], 1
.L8:
	mov	edx, DWORD PTR m[rip]
	mov	eax, DWORD PTR W[rip]
	add	eax, edx
	cmp	DWORD PTR -24[rbp], eax
	jle	.L9
	mov	DWORD PTR -24[rbp], 1
	jmp	.L10
.L14:
	mov	DWORD PTR -20[rbp], 1
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, v[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dis[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, u[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, dis[rip]
	mov	esi, DWORD PTR [rcx+rdx]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, w[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	add	edx, esi
	cmp	eax, edx
	jle	.L12
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, u[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dis[rip]
	mov	esi, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, w[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, v[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	ecx, esi
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dis[rip]
	mov	DWORD PTR [rdx+rax], ecx
.L12:
	add	DWORD PTR -20[rbp], 1
.L11:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L13
	add	DWORD PTR -24[rbp], 1
.L10:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L14
	mov	DWORD PTR -20[rbp], 1
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, v[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dis[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, u[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, dis[rip]
	mov	esi, DWORD PTR [rcx+rdx]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, w[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	add	edx, esi
	cmp	eax, edx
	jle	.L16
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, u[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dis[rip]
	mov	esi, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, w[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, v[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	ecx, esi
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dis[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	DWORD PTR -16[rbp], 1
	jmp	.L17
.L16:
	add	DWORD PTR -20[rbp], 1
.L15:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L18
.L17:
	cmp	DWORD PTR -16[rbp], 0
	je	.L19
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L5
.L19:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L5:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -28[rbp], edx
	test	eax, eax
	jne	.L20
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.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	"243394.c"
	.text
	.comm	dis,2020,4
	.comm	n,4,4
	.comm	m,4,4
	.comm	W,4,4
	.comm	u,24020,4
	.comm	v,24020,4
	.comm	w,24020,4
	.align	2
	.global	init
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ 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
	ldr	r3, .L4
	mov	r2, #0
	str	r2, [r3, #4]
	mov	r3, #2
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r2, .L4
	ldr	r3, [fp, #-8]
	ldr	r1, .L4+4
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, .L4+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L3
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	dis
	.word	99999
	.word	n
	.size	init, .-init
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%d%d%d\000"
	.align	2
.LC2:
	.ascii	"%d %d %d\000"
	.align	2
.LC3:
	.ascii	"YES\000"
	.align	2
.LC4:
	.ascii	"NO\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L25+4
	bl	__isoc99_scanf
	b	.L7
.L22:
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L25+8
	ldr	r2, .L25+12
	ldr	r1, .L25+16
	ldr	r0, .L25+20
	bl	__isoc99_scanf
	bl	init
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L8
.L9:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, .L25+24
	add	r1, r3, r2
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, .L25+28
	add	r2, r3, r2
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r0, .L25+32
	add	r3, r3, r0
	ldr	r0, .L25+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, .L25+28
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L25+24
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, .L25+24
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L25+28
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, .L25+32
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L25+32
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L8:
	ldr	r3, .L25+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L9
	b	.L10
.L11:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, .L25+24
	add	r1, r3, r2
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, .L25+28
	add	r2, r3, r2
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r0, .L25+32
	add	r3, r3, r0
	ldr	r0, .L25+36
	bl	__isoc99_scanf
	ldr	r2, .L25+32
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	rsb	r2, r3, #0
	ldr	r1, .L25+32
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L10:
	ldr	r3, .L25+12
	ldr	r2, [r3]
	ldr	r3, .L25+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L11
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L12
.L16:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L13
.L15:
	ldr	r2, .L25+28
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L25+40
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L25+24
	ldr	r3, [fp, #-20]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r1, .L25+40
	ldr	r1, [r1, r3, lsl #2]
	ldr	r0, .L25+32
	ldr	r3, [fp, #-20]
	ldr	r3, [r0, r3, lsl #2]
	add	r3, r1, r3
	cmp	r2, r3
	ble	.L14
	ldr	r2, .L25+24
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L25+40
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L25+32
	ldr	r3, [fp, #-20]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r0, .L25+28
	ldr	r3, [fp, #-20]
	ldr	r3, [r0, r3, lsl #2]
	add	r2, r1, r2
	ldr	r1, .L25+40
	str	r2, [r1, r3, lsl #2]
.L14:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L13:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L15
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L12:
	ldr	r3, .L25+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L16
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L17
.L20:
	ldr	r2, .L25+28
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L25+40
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L25+24
	ldr	r3, [fp, #-20]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r1, .L25+40
	ldr	r1, [r1, r3, lsl #2]
	ldr	r0, .L25+32
	ldr	r3, [fp, #-20]
	ldr	r3, [r0, r3, lsl #2]
	add	r3, r1, r3
	cmp	r2, r3
	ble	.L18
	ldr	r2, .L25+24
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L25+40
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L25+32
	ldr	r3, [fp, #-20]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r0, .L25+28
	ldr	r3, [fp, #-20]
	ldr	r3, [r0, r3, lsl #2]
	add	r2, r1, r2
	ldr	r1, .L25+40
	str	r2, [r1, r3, lsl #2]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L19
.L18:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L17:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L20
.L19:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L21
	ldr	r0, .L25+44
	bl	puts
	b	.L7
.L21:
	ldr	r0, .L25+48
	bl	puts
.L7:
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	str	r2, [fp, #-28]
	cmp	r3, #0
	bne	.L22
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC5
	.word	.LC0
	.word	W
	.word	m
	.word	n
	.word	.LC1
	.word	u
	.word	v
	.word	w
	.word	.LC2
	.word	dis
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
