	.file	"793920.c"
	.intel_syntax noprefix
	.text
	.globl	L
	.bss
	.align 32
	.type	L, @object
	.size	L, 80
L:
	.zero	80
	.globl	R
	.align 32
	.type	R, @object
	.size	R, 80
R:
	.zero	80
	.globl	Lt
	.align 4
	.type	Lt, @object
	.size	Lt, 4
Lt:
	.zero	4
	.globl	Rt
	.align 4
	.type	Rt, @object
	.size	Rt, 4
Rt:
	.zero	4
	.globl	A
	.align 8
	.type	A, @object
	.size	A, 8
A:
	.zero	8
	.globl	At
	.align 4
	.type	At, @object
	.size	At, 4
At:
	.zero	4
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 160
dp:
	.zero	160
	.globl	num
	.align 32
	.type	num, @object
	.size	num, 160
num:
	.zero	160
	.globl	vis
	.align 32
	.type	vis, @object
	.size	vis, 160
vis:
	.zero	160
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\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
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L9:
	mov	DWORD PTR Lt[rip], 0
	mov	DWORD PTR Rt[rip], 0
	mov	QWORD PTR -32[rbp], 0
	nop
.L3:
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	call	getchar@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L3
.L4:
	mov	eax, DWORD PTR Lt[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR Lt[rip], edx
	mov	edx, DWORD PTR -56[rbp]
	lea	ecx, -48[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, L[rip]
	mov	DWORD PTR [rdx+rax], ecx
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	call	getchar@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L4
	nop
.L5:
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	call	getchar@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L5
.L6:
	mov	eax, DWORD PTR Rt[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR Rt[rip], edx
	mov	edx, DWORD PTR -56[rbp]
	lea	ecx, -48[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, R[rip]
	mov	DWORD PTR [rdx+rax], ecx
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	call	getchar@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L6
	lea	rax, L[rip]
	mov	QWORD PTR A[rip], rax
	mov	eax, DWORD PTR Lt[rip]
	mov	DWORD PTR At[rip], eax
	mov	edx, 160
	mov	esi, 0
	lea	rdi, vis[rip]
	call	memset@PLT
	lea	rax, -48[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 1
	mov	edi, 0
	call	dfs
	lea	rax, R[rip]
	mov	QWORD PTR A[rip], rax
	mov	eax, DWORD PTR Rt[rip]
	mov	DWORD PTR At[rip], eax
	mov	edx, 160
	mov	esi, 0
	lea	rdi, vis[rip]
	call	memset@PLT
	lea	rax, -40[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 1
	mov	edi, 0
	call	dfs
	mov	DWORD PTR -52[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, L[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	add	QWORD PTR -32[rbp], rax
	add	DWORD PTR -52[rbp], 1
.L7:
	mov	eax, DWORD PTR Lt[rip]
	cmp	DWORD PTR -52[rbp], eax
	jl	.L8
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	lea	rcx, 1000000007[rax]
	movabs	rdx, -8543223828751151131
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 29
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000000007
	mov	rax, rcx
	sub	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -60[rbp], edx
	test	eax, eax
	jne	.L9
	mov	eax, 0
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	dfs
	.type	dfs, @function
dfs:
.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, 80
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	DWORD PTR -60[rbp], edx
	mov	QWORD PTR -72[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	cmp	DWORD PTR -56[rbp], 0
	je	.L13
	mov	rdx, QWORD PTR A[rip]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	jmp	.L14
.L13:
	mov	eax, 9
.L14:
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR [rax], 0
	mov	eax, DWORD PTR At[rip]
	cmp	DWORD PTR -52[rbp], eax
	jne	.L15
	mov	eax, 1
	jmp	.L27
.L15:
	cmp	DWORD PTR -56[rbp], 0
	jne	.L17
	cmp	DWORD PTR -60[rbp], 0
	jne	.L17
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vis[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L17
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, dp[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, num[rip]
	mov	rax, QWORD PTR [rdx+rax]
	jmp	.L27
.L17:
	cmp	DWORD PTR -60[rbp], 0
	je	.L18
	mov	eax, DWORD PTR -52[rbp]
	lea	edi, 1[rax]
	lea	rax, -32[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 0
	call	dfs
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, [rdx+rax]
	movabs	rdx, -8543223828751151131
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 29
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000000007
	mov	rax, rcx
	sub	rax, rdx
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, [rdx+rax]
	movabs	rdx, -8543223828751151131
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 29
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	imul	rdx, rax, 1000000007
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	jmp	.L19
.L18:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L20
	cmp	DWORD PTR -56[rbp], 0
	je	.L20
	mov	esi, 1
	jmp	.L21
.L20:
	mov	esi, 0
.L21:
	mov	eax, DWORD PTR -52[rbp]
	lea	edi, 1[rax]
	lea	rax, -32[rbp]
	mov	rcx, rax
	mov	edx, 0
	call	dfs
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, [rdx+rax]
	movabs	rdx, -8543223828751151131
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 29
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000000007
	mov	rax, rcx
	sub	rax, rdx
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, [rdx+rax]
	movabs	rdx, -8543223828751151131
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 29
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	imul	rdx, rax, 1000000007
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -24[rbp], rax
.L19:
	mov	DWORD PTR -40[rbp], 1
	jmp	.L22
.L25:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jne	.L23
	cmp	DWORD PTR -56[rbp], 0
	je	.L23
	mov	esi, 1
	jmp	.L24
.L23:
	mov	esi, 0
.L24:
	mov	eax, DWORD PTR -52[rbp]
	lea	edi, 1[rax]
	lea	rax, -32[rbp]
	mov	rcx, rax
	mov	edx, 0
	call	dfs
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	imul	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	movabs	rdx, -8543223828751151131
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 29
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000000007
	mov	rax, rcx
	sub	rax, rdx
	lea	rcx, [rsi+rax]
	movabs	rdx, -8543223828751151131
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 29
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000000007
	mov	rax, rcx
	sub	rax, rdx
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, [rdx+rax]
	movabs	rdx, -8543223828751151131
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 29
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	imul	rdx, rax, 1000000007
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	add	DWORD PTR -40[rbp], 1
.L22:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L25
	cmp	DWORD PTR -56[rbp], 0
	jne	.L26
	cmp	DWORD PTR -60[rbp], 0
	jne	.L26
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, vis[rip]
	mov	QWORD PTR [rdx+rax], 1
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR [rax]
	movabs	rdx, -8543223828751151131
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 29
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000000007
	mov	rax, rcx
	sub	rax, rdx
	mov	edx, DWORD PTR -52[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, dp[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, -8543223828751151131
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 29
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000000007
	mov	rax, rcx
	sub	rax, rdx
	mov	edx, DWORD PTR -52[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, num[rip]
	mov	QWORD PTR [rcx+rdx], rax
.L26:
	mov	rax, QWORD PTR -24[rbp]
.L27:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dfs, .-dfs
	.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	"793920.c"
	.text
	.comm	L,80,4
	.comm	R,80,4
	.comm	Lt,4,4
	.comm	Rt,4,4
	.comm	A,4,4
	.comm	At,4,4
	.comm	dp,160,8
	.comm	num,160,8
	.comm	vis,160,8
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.global	__aeabi_ldivmod
	.align	2
.LC1:
	.ascii	"%lld\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 = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #60
	ldr	r3, .L12+8
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L12+12
	bl	__isoc99_scanf
	b	.L2
.L9:
	ldr	r3, .L12+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L12+20
	mov	r2, #0
	str	r2, [r3]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	nop
.L3:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r8, [r3]
	bl	getchar
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #1
	add	r3, r8, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L3
.L4:
	ldr	r3, .L12+16
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L12+16
	str	r2, [r1]
	ldr	r2, [fp, #-76]
	sub	r2, r2, #48
	ldr	r1, .L12+24
	str	r2, [r1, r3, lsl #2]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r8, [r3]
	bl	getchar
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #1
	add	r3, r8, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L4
	nop
.L5:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r8, [r3]
	bl	getchar
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #1
	add	r3, r8, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L5
.L6:
	ldr	r3, .L12+20
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L12+20
	str	r2, [r1]
	ldr	r2, [fp, #-76]
	sub	r2, r2, #48
	ldr	r1, .L12+28
	str	r2, [r1, r3, lsl #2]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r8, [r3]
	bl	getchar
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #1
	add	r3, r8, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L12+32
	ldr	r2, .L12+24
	str	r2, [r3]
	ldr	r3, .L12+16
	ldr	r3, [r3]
	ldr	r2, .L12+36
	str	r3, [r2]
	mov	r2, #160
	mov	r1, #0
	ldr	r0, .L12+40
	bl	memset
	sub	r3, fp, #68
	mov	r2, #1
	mov	r1, #1
	mov	r0, #0
	bl	dfs
	ldr	r3, .L12+32
	ldr	r2, .L12+28
	str	r2, [r3]
	ldr	r3, .L12+20
	ldr	r3, [r3]
	ldr	r2, .L12+36
	str	r3, [r2]
	mov	r2, #160
	mov	r1, #0
	ldr	r0, .L12+40
	bl	memset
	sub	r3, fp, #60
	mov	r2, #1
	mov	r1, #1
	mov	r0, #0
	bl	dfs
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L7
.L8:
	ldr	r2, .L12+24
	ldr	r3, [fp, #-72]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	adds	r9, r0, r2
	adc	r10, r1, r3
	str	r9, [fp, #-52]
	str	r10, [fp, #-48]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L7:
	ldr	r3, .L12+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	cmp	r2, r3
	blt	.L8
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r6, r4, r2
	adc	r7, r5, r3
	adr	r3, .L12
	ldmia	r3, {r2-r3}
	adds	r1, r6, r2
	str	r1, [fp, #-92]
	adc	r3, r7, r3
	str	r3, [fp, #-88]
	adr	r3, .L12
	ldmia	r3, {r2-r3}
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	__aeabi_ldivmod
	ldr	r0, .L12+44
	bl	printf
.L2:
	ldr	r3, [fp, #-80]
	sub	r2, r3, #1
	str	r2, [fp, #-80]
	cmp	r3, #0
	bne	.L9
	mov	r3, #0
	ldr	r2, .L12+8
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	3
.L12:
	.word	1000000007
	.word	0
	.word	.LC2
	.word	.LC0
	.word	Lt
	.word	Rt
	.word	L
	.word	R
	.word	A
	.word	At
	.word	vis
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	dfs, %function
dfs:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #88
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, .L31+8
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L31+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L16
.L15:
	mov	r3, #9
.L16:
	str	r3, [fp, #-64]
	ldr	r1, [fp, #-84]
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, .L31+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-72]
	cmp	r3, r2
	bne	.L17
	mov	r2, #1
	mov	r3, #0
	b	.L29
.L17:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L19
	ldr	r2, .L31+20
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L19
	ldr	r2, .L31+24
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-84]
	stm	r1, {r2-r3}
	ldr	r2, .L31+28
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	b	.L29
.L19:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-72]
	add	r0, r3, #1
	sub	r3, fp, #60
	mov	r2, #1
	mov	r1, #0
	bl	dfs
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	ldr	r3, [fp, #-84]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r6, r0, r2
	adc	r7, r1, r3
	adr	r3, .L31
	ldmia	r3, {r2-r3}
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ldivmod
	ldr	r1, [fp, #-84]
	stm	r1, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	ip, r0, r2
	str	ip, [fp, #-92]
	adc	r3, r1, r3
	str	r3, [fp, #-88]
	adr	r3, .L31
	ldmia	r3, {r2-r3}
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	__aeabi_ldivmod
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L21
.L20:
	ldr	r3, [fp, #-72]
	add	r0, r3, #1
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L22
	mov	r1, #1
	b	.L23
.L22:
	mov	r1, #0
.L23:
	sub	r3, fp, #60
	mov	r2, #0
	bl	dfs
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	ldr	r3, [fp, #-84]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r8, r0, r2
	adc	r9, r1, r3
	adr	r3, .L31
	ldmia	r3, {r2-r3}
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_ldivmod
	ldr	r1, [fp, #-84]
	stm	r1, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	ip, r0, r2
	str	ip, [fp, #-100]
	adc	r3, r1, r3
	str	r3, [fp, #-96]
	adr	r3, .L31
	ldmia	r3, {r2-r3}
	sub	r1, fp, #100
	ldmia	r1, {r0-r1}
	bl	__aeabi_ldivmod
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
.L21:
	mov	r3, #1
	str	r3, [fp, #-68]
	b	.L24
.L27:
	ldr	r3, [fp, #-72]
	add	r0, r3, #1
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bne	.L25
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L25
	mov	r1, #1
	b	.L26
.L25:
	mov	r1, #0
.L26:
	sub	r3, fp, #60
	mov	r2, #0
	bl	dfs
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	ldr	r3, [fp, #-84]
	ldmia	r3, {r0-r1}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, [fp, #-68]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-44]
	mul	r0, r3, r1
	ldr	r1, [fp, #-40]
	mul	r1, r2, r1
	add	ip, r0, r1
	ldr	lr, [fp, #-44]
	umull	r0, r1, lr, r2
	add	r3, ip, r1
	mov	r1, r3
	adr	r3, .L31
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	adds	r1, r4, r2
	str	r1, [fp, #-108]
	adc	r3, r5, r3
	str	r3, [fp, #-104]
	adr	r3, .L31
	ldmia	r3, {r2-r3}
	sub	r1, fp, #108
	ldmia	r1, {r0-r1}
	bl	__aeabi_ldivmod
	ldr	r1, [fp, #-84]
	stm	r1, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	ip, r0, r2
	str	ip, [fp, #-116]
	adc	r3, r1, r3
	str	r3, [fp, #-112]
	adr	r3, .L31
	ldmia	r3, {r2-r3}
	sub	r1, fp, #116
	ldmia	r1, {r0-r1}
	bl	__aeabi_ldivmod
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L24:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	ble	.L27
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L28
	ldr	r2, .L31+20
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-84]
	ldmia	r3, {r0-r1}
	adr	r3, .L31
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	ldr	r0, .L31+24
	ldr	r1, [fp, #-72]
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	adr	r3, .L31
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	ldr	r0, .L31+28
	ldr	r1, [fp, #-72]
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
.L28:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
.L29:
	ldr	r1, .L31+8
	ldr	r0, [r1]
	ldr	r1, [fp, #-32]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L32:
	.align	3
.L31:
	.word	1000000007
	.word	0
	.word	.LC3
	.word	A
	.word	At
	.word	vis
	.word	dp
	.word	num
	.size	dfs, .-dfs
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
