	.file	"309941.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 4040100
a:
	.zero	4040100
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 4040100
b:
	.zero	4040100
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"NO"
.LC4:
	.string	"YES"
	.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, 1072
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1032[rbp], 0
	mov	DWORD PTR -1028[rbp], 0
	lea	rax, -1068[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L34:
	mov	DWORD PTR -1032[rbp], 0
	mov	DWORD PTR -1048[rbp], 0
	jmp	.L3
.L6:
	mov	DWORD PTR -1044[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -1044[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -1048[rbp]
	cdqe
	imul	rax, rax, 1005
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -1044[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -1048[rbp]
	cdqe
	imul	rax, rax, 1005
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, b[rip]
	mov	DWORD PTR [rdx+rax], 0
	add	DWORD PTR -1044[rbp], 1
.L4:
	cmp	DWORD PTR -1044[rbp], 999
	jle	.L5
	mov	eax, DWORD PTR -1048[rbp]
	cdqe
	mov	BYTE PTR -1024[rbp+rax], 48
	add	DWORD PTR -1048[rbp], 1
.L3:
	cmp	DWORD PTR -1048[rbp], 999
	jle	.L6
	lea	rdx, -1060[rbp]
	lea	rax, -1064[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -1048[rbp], 0
	jmp	.L7
.L10:
	lea	rax, -1024[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -1044[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -1044[rbp]
	cdqe
	movzx	eax, BYTE PTR -1024[rbp+rax]
	movsx	eax, al
	lea	ecx, -48[rax]
	mov	eax, DWORD PTR -1044[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -1048[rbp]
	cdqe
	imul	rax, rax, 1005
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -1044[rbp], 1
.L8:
	mov	eax, DWORD PTR -1060[rbp]
	cmp	DWORD PTR -1044[rbp], eax
	jl	.L9
	add	DWORD PTR -1048[rbp], 1
.L7:
	mov	eax, DWORD PTR -1064[rbp]
	cmp	DWORD PTR -1048[rbp], eax
	jl	.L10
	lea	rdx, -1052[rbp]
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -1048[rbp], 0
	jmp	.L11
.L14:
	lea	rax, -1024[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -1044[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -1044[rbp]
	cdqe
	movzx	eax, BYTE PTR -1024[rbp+rax]
	movsx	eax, al
	lea	ecx, -48[rax]
	mov	eax, DWORD PTR -1044[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -1048[rbp]
	cdqe
	imul	rax, rax, 1005
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, b[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -1044[rbp], 1
.L12:
	mov	eax, DWORD PTR -1052[rbp]
	cmp	DWORD PTR -1044[rbp], eax
	jl	.L13
	add	DWORD PTR -1048[rbp], 1
.L11:
	mov	eax, DWORD PTR -1056[rbp]
	cmp	DWORD PTR -1048[rbp], eax
	jl	.L14
	mov	edx, DWORD PTR -1056[rbp]
	mov	eax, DWORD PTR -1064[rbp]
	cmp	edx, eax
	jg	.L15
	mov	edx, DWORD PTR -1052[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	cmp	edx, eax
	jle	.L16
.L15:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L2
.L16:
	mov	DWORD PTR -1048[rbp], 0
	jmp	.L17
.L32:
	mov	DWORD PTR -1044[rbp], 0
	jmp	.L18
.L29:
	mov	DWORD PTR -1028[rbp], 0
	mov	DWORD PTR -1040[rbp], 0
	jmp	.L19
.L26:
	mov	DWORD PTR -1036[rbp], 0
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -1036[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -1040[rbp]
	cdqe
	imul	rax, rax, 1005
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, b[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR -1048[rbp]
	mov	eax, DWORD PTR -1040[rbp]
	add	eax, ecx
	mov	esi, DWORD PTR -1044[rbp]
	mov	ecx, DWORD PTR -1036[rbp]
	add	ecx, esi
	movsx	rcx, ecx
	cdqe
	imul	rax, rax, 1005
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	je	.L21
	mov	DWORD PTR -1028[rbp], 1
	jmp	.L22
.L21:
	add	DWORD PTR -1036[rbp], 1
.L20:
	mov	eax, DWORD PTR -1052[rbp]
	cmp	DWORD PTR -1036[rbp], eax
	jl	.L23
.L22:
	cmp	DWORD PTR -1028[rbp], 1
	je	.L37
	add	DWORD PTR -1040[rbp], 1
.L19:
	mov	eax, DWORD PTR -1056[rbp]
	cmp	DWORD PTR -1040[rbp], eax
	jl	.L26
	jmp	.L25
.L37:
	nop
.L25:
	cmp	DWORD PTR -1028[rbp], 0
	jne	.L27
	mov	DWORD PTR -1032[rbp], 1
	jmp	.L28
.L27:
	add	DWORD PTR -1044[rbp], 1
.L18:
	mov	eax, DWORD PTR -1060[rbp]
	mov	edx, DWORD PTR -1052[rbp]
	sub	eax, edx
	cmp	DWORD PTR -1044[rbp], eax
	jle	.L29
.L28:
	cmp	DWORD PTR -1032[rbp], 1
	je	.L38
	add	DWORD PTR -1048[rbp], 1
.L17:
	mov	eax, DWORD PTR -1064[rbp]
	mov	edx, DWORD PTR -1056[rbp]
	sub	eax, edx
	cmp	DWORD PTR -1048[rbp], eax
	jle	.L32
	jmp	.L31
.L38:
	nop
.L31:
	cmp	DWORD PTR -1032[rbp], 1
	jne	.L33
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L2
.L33:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L2:
	mov	eax, DWORD PTR -1068[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -1068[rbp], edx
	test	eax, eax
	jne	.L34
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	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	"309941.c"
	.text
	.comm	a,4040100,4
	.comm	b,4040100,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%d%d\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.ascii	"NO\000"
	.align	2
.LC4:
	.ascii	"YES\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 = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1024]
	mov	r3, #0
	str	r3, [fp, #-1020]
	sub	r3, fp, #1056
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L39+4
	bl	__isoc99_scanf
	b	.L2
.L34:
	mov	r3, #0
	str	r3, [fp, #-1024]
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L3
.L6:
	mov	r3, #0
	str	r3, [fp, #-1036]
	b	.L4
.L5:
	ldr	r1, .L39+8
	ldr	r2, [fp, #-1040]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L39+12
	ldr	r2, [fp, #-1040]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-1036]
	add	r3, r3, #1
	str	r3, [fp, #-1036]
.L4:
	ldr	r3, [fp, #-1036]
	cmp	r3, #1000
	blt	.L5
	sub	r2, fp, #1016
	ldr	r3, [fp, #-1040]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L3:
	ldr	r3, [fp, #-1040]
	cmp	r3, #1000
	blt	.L6
	sub	r2, fp, #1040
	sub	r2, r2, #4
	sub	r2, r2, #8
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L39+16
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L7
.L10:
	sub	r3, fp, #1016
	mov	r1, r3
	ldr	r0, .L39+20
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-1036]
	b	.L8
.L9:
	sub	r2, fp, #1016
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r1, r3, #48
	ldr	r0, .L39+8
	ldr	r2, [fp, #-1040]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	str	r1, [r0, r3, lsl #2]
	ldr	r3, [fp, #-1036]
	add	r3, r3, #1
	str	r3, [fp, #-1036]
.L8:
	ldr	r3, [fp, #-1052]
	ldr	r2, [fp, #-1036]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L7:
	ldr	r3, [fp, #-1056]
	ldr	r2, [fp, #-1040]
	cmp	r2, r3
	blt	.L10
	sub	r2, fp, #1040
	sub	r2, r2, #4
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L39+16
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L11
.L14:
	sub	r3, fp, #1016
	mov	r1, r3
	ldr	r0, .L39+20
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-1036]
	b	.L12
.L13:
	sub	r2, fp, #1016
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r1, r3, #48
	ldr	r0, .L39+12
	ldr	r2, [fp, #-1040]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	str	r1, [r0, r3, lsl #2]
	ldr	r3, [fp, #-1036]
	add	r3, r3, #1
	str	r3, [fp, #-1036]
.L12:
	ldr	r3, [fp, #-1044]
	ldr	r2, [fp, #-1036]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L11:
	ldr	r3, [fp, #-1048]
	ldr	r2, [fp, #-1040]
	cmp	r2, r3
	blt	.L14
	ldr	r2, [fp, #-1048]
	ldr	r3, [fp, #-1056]
	cmp	r2, r3
	bgt	.L15
	ldr	r2, [fp, #-1044]
	ldr	r3, [fp, #-1052]
	cmp	r2, r3
	ble	.L16
.L15:
	ldr	r0, .L39+24
	bl	puts
	b	.L2
.L16:
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L17
.L32:
	mov	r3, #0
	str	r3, [fp, #-1036]
	b	.L18
.L29:
	mov	r3, #0
	str	r3, [fp, #-1020]
	mov	r3, #0
	str	r3, [fp, #-1032]
	b	.L19
.L26:
	mov	r3, #0
	str	r3, [fp, #-1028]
	b	.L20
.L23:
	ldr	r1, .L39+12
	ldr	r2, [fp, #-1032]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	ldr	r3, [fp, #-1028]
	add	r3, r2, r3
	ldr	r1, [r1, r3, lsl #2]
	ldr	r2, [fp, #-1040]
	ldr	r3, [fp, #-1032]
	add	r2, r2, r3
	ldr	r0, [fp, #-1036]
	ldr	r3, [fp, #-1028]
	add	r0, r0, r3
	ldr	ip, .L39+8
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	add	r3, r2, r0
	ldr	r3, [ip, r3, lsl #2]
	cmp	r1, r3
	beq	.L21
	mov	r3, #1
	str	r3, [fp, #-1020]
	b	.L22
.L21:
	ldr	r3, [fp, #-1028]
	add	r3, r3, #1
	str	r3, [fp, #-1028]
.L20:
	ldr	r3, [fp, #-1044]
	ldr	r2, [fp, #-1028]
	cmp	r2, r3
	blt	.L23
.L22:
	ldr	r3, [fp, #-1020]
	cmp	r3, #1
	beq	.L37
	ldr	r3, [fp, #-1032]
	add	r3, r3, #1
	str	r3, [fp, #-1032]
.L19:
	ldr	r3, [fp, #-1048]
	ldr	r2, [fp, #-1032]
	cmp	r2, r3
	blt	.L26
	b	.L25
.L37:
	nop
.L25:
	ldr	r3, [fp, #-1020]
	cmp	r3, #0
	bne	.L27
	mov	r3, #1
	str	r3, [fp, #-1024]
	b	.L28
.L27:
	ldr	r3, [fp, #-1036]
	add	r3, r3, #1
	str	r3, [fp, #-1036]
.L18:
	ldr	r2, [fp, #-1052]
	ldr	r3, [fp, #-1044]
	sub	r3, r2, r3
	ldr	r2, [fp, #-1036]
	cmp	r2, r3
	ble	.L29
.L28:
	ldr	r3, [fp, #-1024]
	cmp	r3, #1
	beq	.L38
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L17:
	ldr	r2, [fp, #-1056]
	ldr	r3, [fp, #-1048]
	sub	r3, r2, r3
	ldr	r2, [fp, #-1040]
	cmp	r2, r3
	ble	.L32
	b	.L31
.L38:
	nop
.L31:
	ldr	r3, [fp, #-1024]
	cmp	r3, #1
	bne	.L33
	ldr	r0, .L39+28
	bl	puts
	b	.L2
.L33:
	ldr	r0, .L39+24
	bl	puts
.L2:
	ldr	r3, [fp, #-1060]
	sub	r2, r3, #1
	str	r2, [fp, #-1060]
	cmp	r3, #0
	bne	.L34
	mov	r3, #0
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC5
	.word	.LC0
	.word	a
	.word	b
	.word	.LC1
	.word	.LC2
	.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
