	.file	"476655.c"
	.intel_syntax noprefix
	.text
	.globl	N
	.bss
	.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	YES
	.align 4
	.type	YES, @object
	.size	YES, 4
YES:
	.zero	4
	.globl	G
	.align 32
	.type	G, @object
	.size	G, 2277081
G:
	.zero	2277081
	.globl	V
	.align 32
	.type	V, @object
	.size	V, 9108324
V:
	.zero	9108324
	.globl	Ay
	.align 32
	.type	Ay, @object
	.size	Ay, 9108324
Ay:
	.zero	9108324
	.globl	Ax
	.align 32
	.type	Ax, @object
	.size	Ax, 9108324
Ax:
	.zero	9108324
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	ecx, DWORD PTR N[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR N[rip]
	add	eax, edx
	mov	ecx, DWORD PTR N[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -8[rbp], edx
	mov	ecx, DWORD PTR M[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR M[rip]
	add	eax, edx
	mov	ecx, DWORD PTR M[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -4[rbp], edx
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 1509
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, V[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L2
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 1509
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, Ay[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 1509
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, Ax[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -24[rbp], eax
	je	.L9
.L3:
	mov	DWORD PTR YES[rip], 1
	jmp	.L9
.L2:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 1509
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, V[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 1509
	add	rax, rdx
	lea	rcx, 0[0+rax*4]
	lea	rdx, Ay[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 1509
	add	rax, rdx
	lea	rcx, 0[0+rax*4]
	lea	rdx, Ax[rip]
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	ecx, DWORD PTR N[rip]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR N[rip]
	add	eax, edx
	mov	ecx, DWORD PTR N[rip]
	cdq
	idiv	ecx
	mov	ecx, edx
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	movsx	rax, ecx
	imul	rax, rax, 1509
	add	rdx, rax
	lea	rax, G[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	je	.L6
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	mov	edi, edx
	call	dfs
.L6:
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR N[rip]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR N[rip]
	add	eax, edx
	mov	ecx, DWORD PTR N[rip]
	cdq
	idiv	ecx
	mov	ecx, edx
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	movsx	rax, ecx
	imul	rax, rax, 1509
	add	rdx, rax
	lea	rax, G[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	je	.L7
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	mov	edi, edx
	call	dfs
.L7:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	mov	ecx, DWORD PTR M[rip]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR M[rip]
	add	eax, edx
	mov	ecx, DWORD PTR M[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 1509
	add	rdx, rax
	lea	rax, G[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	je	.L8
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	dfs
.L8:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	ecx, DWORD PTR M[rip]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR M[rip]
	add	eax, edx
	mov	ecx, DWORD PTR M[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 1509
	add	rdx, rax
	lea	rax, G[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	je	.L1
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	dfs
	jmp	.L1
.L9:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
.L27:
	mov	DWORD PTR -12[rbp], 0
	lea	rdx, M[rip]
	lea	rsi, N[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 2
	je	.L11
	mov	DWORD PTR -12[rbp], 1
	jmp	.L12
.L11:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L13
.L17:
	nop
.L14:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L14
	mov	DWORD PTR -4[rbp], 0
	jmp	.L15
.L16:
	call	getchar@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 1509
	add	rcx, rax
	lea	rax, G[rip]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -4[rbp], 1
.L15:
	mov	eax, DWORD PTR M[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L16
	add	DWORD PTR -8[rbp], 1
.L13:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L17
.L12:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L30
	mov	DWORD PTR -28[rbp], 0
	jmp	.L20
.L24:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L21
.L23:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	imul	rax, rax, 1509
	add	rdx, rax
	lea	rax, G[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 83
	jne	.L22
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -20[rbp], eax
.L22:
	add	DWORD PTR -24[rbp], 1
.L21:
	mov	eax, DWORD PTR M[rip]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L23
	add	DWORD PTR -28[rbp], 1
.L20:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L24
	mov	edx, 9108324
	mov	esi, 0
	lea	rdi, V[rip]
	call	memset@PLT
	mov	DWORD PTR YES[rip], 0
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	dfs
	mov	eax, DWORD PTR YES[rip]
	test	eax, eax
	je	.L25
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L27
.L25:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L27
.L30:
	nop
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"476655.c"
	.text
	.comm	N,4,4
	.comm	M,4,4
	.comm	YES,4,4
	.comm	G,2277081,4
	.comm	V,9108324,4
	.comm	Ay,9108324,4
	.comm	Ax,9108324,4
	.global	__aeabi_idivmod
	.align	2
	.global	dfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	dfs, %function
dfs:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L10
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L10+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L10+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r1, .L10+8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #0
	beq	.L2
	ldr	r1, .L10+12
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L3
	ldr	r1, .L10+16
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L9
.L3:
	ldr	r3, .L10+20
	mov	r2, #1
	str	r2, [r3]
	b	.L9
.L2:
	ldr	r1, .L10+8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L10+12
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L10+16
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L10
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L10
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r1, .L10+24
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	add	r2, r1, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	beq	.L6
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	dfs
.L6:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, .L10
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L10
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r1, .L10+24
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	add	r2, r1, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	beq	.L7
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	dfs
.L7:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, .L10+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L10+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L10+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r0, r3
	ldr	r1, .L10+24
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	add	r3, r1, r2
	add	r3, r3, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	beq	.L8
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	dfs
.L8:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, .L10+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L10+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L10+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r0, r3
	ldr	r1, .L10+24
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	add	r3, r1, r2
	add	r3, r3, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	beq	.L1
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	dfs
	b	.L1
.L9:
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	N
	.word	M
	.word	V
	.word	Ay
	.word	Ax
	.word	YES
	.word	G
	.size	dfs, .-dfs
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%d\000"
	.align	2
.LC1:
	.ascii	"Yes\000"
	.align	2
.LC2:
	.ascii	"No\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
.L29:
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r2, .L33
	ldr	r1, .L33+4
	ldr	r0, .L33+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L13
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L14
.L13:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L15
.L19:
	nop
.L16:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L16
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L17
.L18:
	bl	getchar
	mov	r3, r0
	and	r0, r3, #255
	ldr	r1, .L33+12
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	add	r2, r1, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L17:
	ldr	r3, .L33
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L18
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L15:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L19
.L14:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L32
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L22
.L26:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L23
.L25:
	ldr	r1, .L33+12
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	add	r2, r1, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #83
	bne	.L24
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-24]
.L24:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L23:
	ldr	r3, .L33
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L25
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L22:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L26
	ldr	r2, .L33+16
	mov	r1, #0
	ldr	r0, .L33+20
	bl	memset
	ldr	r3, .L33+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	dfs
	ldr	r3, .L33+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L27
	ldr	r0, .L33+28
	bl	puts
	b	.L29
.L27:
	ldr	r0, .L33+32
	bl	puts
	b	.L29
.L32:
	nop
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	M
	.word	N
	.word	.LC0
	.word	G
	.word	9108324
	.word	V
	.word	YES
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
