	.file	"92326534.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%llu"
.LC1:
	.string	"impossible"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%llu %d"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 848
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L2
.L17:
	mov	DWORD PTR -4940[rbp], 0
	jmp	.L3
.L4:
	lea	rdx, -4896[rbp]
	mov	eax, DWORD PTR -4940[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -4940[rbp], 1
.L3:
	mov	eax, DWORD PTR -4944[rbp]
	cmp	DWORD PTR -4940[rbp], eax
	jl	.L4
	mov	QWORD PTR -4912[rbp], 0
	mov	DWORD PTR -4940[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -4940[rbp]
	cdqe
	mov	rax, QWORD PTR -4896[rbp+rax*8]
	add	QWORD PTR -4912[rbp], rax
	add	DWORD PTR -4940[rbp], 1
.L5:
	mov	eax, DWORD PTR -4944[rbp]
	cmp	DWORD PTR -4940[rbp], eax
	jl	.L6
	mov	rax, QWORD PTR -4928[rbp]
	cmp	QWORD PTR -4912[rbp], rax
	jnb	.L7
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L2
.L7:
	mov	DWORD PTR -4940[rbp], 0
	jmp	.L8
.L12:
	mov	DWORD PTR -4936[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -4936[rbp]
	cdqe
	mov	rdx, QWORD PTR -4896[rbp+rax*8]
	mov	eax, DWORD PTR -4936[rbp]
	add	eax, 1
	cdqe
	mov	rax, QWORD PTR -4896[rbp+rax*8]
	cmp	rdx, rax
	jbe	.L10
	mov	eax, DWORD PTR -4936[rbp]
	add	eax, 1
	cdqe
	mov	rax, QWORD PTR -4896[rbp+rax*8]
	mov	QWORD PTR -4904[rbp], rax
	mov	eax, DWORD PTR -4936[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -4936[rbp]
	cdqe
	mov	rdx, QWORD PTR -4896[rbp+rax*8]
	movsx	rax, ecx
	mov	QWORD PTR -4896[rbp+rax*8], rdx
	mov	eax, DWORD PTR -4936[rbp]
	cdqe
	mov	rdx, QWORD PTR -4904[rbp]
	mov	QWORD PTR -4896[rbp+rax*8], rdx
.L10:
	add	DWORD PTR -4936[rbp], 1
.L9:
	mov	eax, DWORD PTR -4944[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -4940[rbp]
	cmp	DWORD PTR -4936[rbp], eax
	jl	.L11
	add	DWORD PTR -4940[rbp], 1
.L8:
	mov	eax, DWORD PTR -4944[rbp]
	cmp	DWORD PTR -4940[rbp], eax
	jl	.L12
	mov	QWORD PTR -4920[rbp], 0
	mov	DWORD PTR -4932[rbp], 0
	mov	eax, DWORD PTR -4944[rbp]
	sub	eax, 1
	mov	DWORD PTR -4940[rbp], eax
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -4940[rbp]
	cdqe
	mov	rax, QWORD PTR -4896[rbp+rax*8]
	add	QWORD PTR -4920[rbp], rax
	add	DWORD PTR -4932[rbp], 1
	mov	rax, QWORD PTR -4928[rbp]
	cmp	QWORD PTR -4920[rbp], rax
	jnb	.L20
	sub	DWORD PTR -4940[rbp], 1
.L13:
	cmp	DWORD PTR -4940[rbp], 0
	jns	.L16
	jmp	.L15
.L20:
	nop
.L15:
	mov	rax, QWORD PTR -4928[rbp]
	cmp	QWORD PTR -4920[rbp], rax
	jb	.L2
	mov	eax, DWORD PTR -4932[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	lea	rdx, -4944[rbp]
	lea	rax, -4928[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L17
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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	"92326534.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%llu\000"
	.align	2
.LC1:
	.ascii	"impossible\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.ascii	"%llu %d\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4936
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #4928
	sub	sp, sp, #8
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	b	.L2
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-836]
	b	.L3
.L4:
	sub	r3, fp, #4864
	sub	r3, r3, #20
	sub	r3, r3, #24
	sub	r2, fp, #4096
	sub	r2, r2, #20
	ldr	r2, [r2, #-836]
	lsl	r2, r2, #3
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L21+4
	bl	__isoc99_scanf
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-836]
	add	r3, r3, #1
	str	r3, [r2, #-836]
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-840]
	sub	r2, fp, #4096
	sub	r2, r2, #20
	ldr	r2, [r2, #-836]
	cmp	r2, r3
	blt	.L4
	sub	r3, fp, #4864
	sub	r3, r3, #20
	sub	r3, r3, #32
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stmdb	r1, {r2-r3}
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-836]
	b	.L5
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-836]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #792
	ldmia	r3, {r2-r3}
	sub	r1, fp, #4864
	sub	r1, r1, #20
	sub	r1, r1, #32
	mov	ip, r1
	sub	r1, fp, #4864
	sub	r1, r1, #20
	sub	r1, r1, #32
	ldmdb	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	stmdb	ip, {r4-r5}
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-836]
	add	r3, r3, #1
	str	r3, [r2, #-836]
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-840]
	sub	r2, fp, #4096
	sub	r2, r2, #20
	ldr	r2, [r2, #-836]
	cmp	r2, r3
	blt	.L6
	sub	r3, fp, #4864
	sub	r3, r3, #20
	sub	r3, r3, #48
	ldmdb	r3, {r0-r1}
	sub	r3, fp, #4864
	sub	r3, r3, #20
	sub	r3, r3, #32
	ldmdb	r3, {r2-r3}
	cmp	r3, r1
	cmpeq	r2, r0
	bcs	.L7
	ldr	r0, .L21+8
	bl	puts
	b	.L2
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-836]
	b	.L8
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-832]
	b	.L9
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-832]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #792
	ldmia	r3, {r0-r1}
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-832]
	add	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #20
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #792
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bls	.L10
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-832]
	add	r2, r3, #1
	sub	r3, fp, #4864
	sub	r3, r3, #20
	sub	r3, r3, #32
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r0, r3
	lsl	r3, r2, #3
	add	r3, r0, r3
	sub	r3, r3, #792
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-832]
	add	r1, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-832]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #792
	ldmia	r3, {r2-r3}
	sub	r0, fp, #4096
	sub	r0, r0, #20
	lsl	r1, r1, #3
	add	r1, r0, r1
	sub	r1, r1, #792
	stm	r1, {r2-r3}
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-832]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r1, r3, #792
	sub	r3, fp, #4864
	sub	r3, r3, #20
	sub	r3, r3, #32
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-832]
	add	r3, r3, #1
	str	r3, [r2, #-832]
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-840]
	sub	r2, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-836]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #20
	ldr	r2, [r2, #-832]
	cmp	r2, r3
	blt	.L11
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-836]
	add	r3, r3, #1
	str	r3, [r2, #-836]
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-840]
	sub	r2, fp, #4096
	sub	r2, r2, #20
	ldr	r2, [r2, #-836]
	cmp	r2, r3
	blt	.L12
	sub	r3, fp, #4864
	sub	r3, r3, #20
	sub	r3, r3, #48
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-828]
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-840]
	sub	r2, fp, #4096
	sub	r2, r2, #20
	sub	r3, r3, #1
	str	r3, [r2, #-836]
	b	.L13
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-836]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #792
	ldmia	r3, {r2-r3}
	sub	r1, fp, #4864
	sub	r1, r1, #20
	sub	r1, r1, #48
	mov	ip, r1
	sub	r1, fp, #4864
	sub	r1, r1, #20
	sub	r1, r1, #48
	ldmia	r1, {r0-r1}
	adds	r6, r0, r2
	adc	r7, r1, r3
	stm	ip, {r6-r7}
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-828]
	add	r3, r3, #1
	str	r3, [r2, #-828]
	sub	r3, fp, #4864
	sub	r3, r3, #20
	sub	r3, r3, #48
	ldmdb	r3, {r0-r1}
	sub	r3, fp, #4864
	sub	r3, r3, #20
	sub	r3, r3, #48
	ldmia	r3, {r2-r3}
	cmp	r3, r1
	cmpeq	r2, r0
	bcs	.L20
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-836]
	sub	r3, r3, #1
	str	r3, [r2, #-836]
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-836]
	cmp	r3, #0
	bge	.L16
	b	.L15
.L20:
	nop
.L15:
	sub	r3, fp, #4864
	sub	r3, r3, #20
	sub	r3, r3, #48
	ldmdb	r3, {r0-r1}
	sub	r3, fp, #4864
	sub	r3, r3, #20
	sub	r3, r3, #48
	ldmia	r3, {r2-r3}
	cmp	r3, r1
	cmpeq	r2, r0
	bcc	.L2
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r1, [r3, #-828]
	ldr	r0, .L21+12
	bl	printf
.L2:
	sub	r2, fp, #4928
	sub	r2, r2, #20
	sub	r2, r2, #8
	sub	r3, fp, #4864
	sub	r3, r3, #20
	sub	r3, r3, #56
	mov	r1, r3
	ldr	r0, .L21+16
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L17
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
