	.file	"77863.c"
	.intel_syntax noprefix
	.text
	.globl	max
	.type	max, @function
max:
.LFB0:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -8[rbp]
	cmp	DWORD PTR -4[rbp], eax
	cmovge	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 4096
x:
	.zero	4096
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 4096
c:
	.zero	4096
	.globl	r
	.align 32
	.type	r, @object
	.size	r, 4096
r:
	.zero	4096
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 1024
s:
	.zero	1024
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s %d"
.LC2:
	.string	"Case #%d: IMPOSSIBLE\n"
.LC3:
	.string	"Case #%d: %d\n"
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L4
.L27:
	lea	rdx, k[rip]
	lea	rsi, s[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, s[rip]
	call	strlen@PLT
	mov	DWORD PTR n[rip], eax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, s[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 43
	sete	al
	movzx	eax, al
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, c[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -32[rbp], 1
.L5:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L6
	mov	DWORD PTR -32[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -32[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	mov	DWORD PTR [rdx+rax], 0
.L7:
	mov	eax, DWORD PTR n[rip]
	mov	edx, DWORD PTR k[rip]
	sub	eax, edx
	cmp	DWORD PTR -32[rbp], eax
	jle	.L8
	mov	DWORD PTR -32[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, c[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, r[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -32[rbp], 1
.L9:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L10
	mov	eax, DWORD PTR c[rip]
	xor	eax, 1
	mov	DWORD PTR x[rip], eax
	mov	DWORD PTR -32[rbp], 1
	jmp	.L11
.L14:
	mov	DWORD PTR -16[rbp], 0
	mov	edx, DWORD PTR k[rip]
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, edx
	add	eax, 1
	mov	esi, 0
	mov	edi, eax
	call	max
	mov	DWORD PTR -28[rbp], eax
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -28[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	mov	eax, DWORD PTR [rdx+rax]
	xor	DWORD PTR -16[rbp], eax
.L12:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jg	.L13
	mov	eax, DWORD PTR -16[rbp]
	xor	eax, 1
	mov	ecx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, c[rip]
	mov	eax, DWORD PTR [rdx+rax]
	xor	ecx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -32[rbp], 1
.L11:
	mov	eax, DWORD PTR n[rip]
	mov	edx, DWORD PTR k[rip]
	sub	eax, edx
	cmp	DWORD PTR -32[rbp], eax
	jle	.L14
	mov	DWORD PTR -32[rbp], 0
	jmp	.L15
.L19:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L16
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, r[rip]
	mov	eax, DWORD PTR [rdx+rax]
	xor	eax, 1
	mov	ecx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, r[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -24[rbp], 1
.L17:
	mov	edx, DWORD PTR k[rip]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	cmp	DWORD PTR -24[rbp], eax
	jl	.L18
.L16:
	add	DWORD PTR -32[rbp], 1
.L15:
	mov	eax, DWORD PTR n[rip]
	mov	edx, DWORD PTR k[rip]
	sub	eax, edx
	cmp	DWORD PTR -32[rbp], eax
	jle	.L19
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -32[rbp], 0
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, r[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L21
	mov	DWORD PTR -12[rbp], 0
.L21:
	add	DWORD PTR -32[rbp], 1
.L20:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -32[rbp], eax
	jge	.L22
	cmp	DWORD PTR -12[rbp], 0
	jne	.L23
.L22:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L24
	add	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L24:
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -32[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	DWORD PTR -28[rbp], eax
.L25:
	mov	eax, DWORD PTR n[rip]
	mov	edx, DWORD PTR k[rip]
	sub	eax, edx
	cmp	DWORD PTR -32[rbp], eax
	jle	.L26
	add	DWORD PTR -20[rbp], 1
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -36[rbp], edx
	test	eax, eax
	jne	.L27
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	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	"77863.c"
	.text
	.align	2
	.global	max
	.syntax unified
	.arm
	.fpu softvfp
	.type	max, %function
max:
	@ 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
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	max, .-max
	.comm	n,4,4
	.comm	k,4,4
	.comm	x,4096,4
	.comm	c,4096,4
	.comm	r,4096,4
	.comm	s,1024,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%s %d\000"
	.align	2
.LC2:
	.ascii	"Case #%d: IMPOSSIBLE\012\000"
	.align	2
.LC3:
	.ascii	"Case #%d: %d\012\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L30+4
	bl	__isoc99_scanf
	b	.L4
.L27:
	ldr	r2, .L30+8
	ldr	r1, .L30+12
	ldr	r0, .L30+16
	bl	__isoc99_scanf
	ldr	r0, .L30+12
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L30+20
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L5
.L6:
	ldr	r2, .L30+12
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r2, .L30+24
	ldr	r3, [fp, #-32]
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L5:
	ldr	r3, .L30+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L6
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L7
.L8:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	ldr	r2, .L30+28
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
.L7:
	ldr	r3, .L30+20
	ldr	r2, [r3]
	ldr	r3, .L30+8
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	ble	.L8
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L9
.L10:
	ldr	r2, .L30+24
	ldr	r3, [fp, #-32]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L30+32
	ldr	r3, [fp, #-32]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L9:
	ldr	r3, .L30+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L10
	ldr	r3, .L30+24
	ldr	r3, [r3]
	eor	r3, r3, #1
	ldr	r2, .L30+28
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L11
.L14:
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L30+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r1, #0
	mov	r0, r3
	bl	max
	str	r0, [fp, #-28]
	b	.L12
.L13:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldr	r2, .L30+28
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	eor	r3, r3, r2
	str	r3, [fp, #-16]
.L12:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bgt	.L13
	ldr	r3, [fp, #-16]
	eor	r2, r3, #1
	ldr	r1, .L30+24
	ldr	r3, [fp, #-32]
	ldr	r3, [r1, r3, lsl #2]
	eor	r2, r2, r3
	ldr	r1, .L30+28
	ldr	r3, [fp, #-32]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L11:
	ldr	r3, .L30+20
	ldr	r2, [r3]
	ldr	r3, .L30+8
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	ble	.L14
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L15
.L19:
	ldr	r2, .L30+28
	ldr	r3, [fp, #-32]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	b	.L17
.L18:
	ldr	r2, .L30+32
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	eor	r2, r3, #1
	ldr	r1, .L30+32
	ldr	r3, [fp, #-24]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L17:
	ldr	r3, .L30+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L18
.L16:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L15:
	ldr	r3, .L30+20
	ldr	r2, [r3]
	ldr	r3, .L30+8
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	ble	.L19
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L20
.L23:
	ldr	r2, .L30+32
	ldr	r3, [fp, #-32]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L21
	mov	r3, #0
	str	r3, [fp, #-12]
.L21:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L20:
	ldr	r3, .L30+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bge	.L22
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L23
.L22:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L30+36
	bl	printf
	b	.L4
.L24:
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L25
.L26:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	ldr	r2, .L30+28
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-28]
.L25:
	ldr	r3, .L30+20
	ldr	r2, [r3]
	ldr	r3, .L30+8
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	ble	.L26
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-20]
	ldr	r0, .L30+40
	bl	printf
.L4:
	ldr	r3, [fp, #-36]
	sub	r2, r3, #1
	str	r2, [fp, #-36]
	cmp	r3, #0
	bne	.L27
	mov	r3, #0
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC4
	.word	.LC0
	.word	k
	.word	s
	.word	.LC1
	.word	n
	.word	c
	.word	x
	.word	r
	.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
