	.file	"20697.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%d "
.LC3:
	.string	"N "
.LC4:
	.string	"%.1lf "
	.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	lea	rax, -52[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L2
.L13:
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	ecx, DWORD PTR -48[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, ecx
	sub	edx, eax
	test	edx, edx
	jne	.L3
	mov	eax, DWORD PTR -48[rbp]
	jmp	.L4
.L3:
	mov	eax, 0
.L4:
	add	DWORD PTR -40[rbp], eax
	mov	edx, DWORD PTR -48[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	eax, 1
	sete	al
	movzx	eax, al
	add	DWORD PTR -32[rbp], eax
	mov	edx, DWORD PTR -48[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	eax, 1
	jne	.L5
	mov	eax, DWORD PTR -32[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L6
	mov	edx, 1
	jmp	.L7
.L6:
	mov	edx, -1
.L7:
	mov	eax, DWORD PTR -48[rbp]
	imul	eax, edx
	jmp	.L8
.L5:
	mov	eax, 0
.L8:
	add	DWORD PTR -36[rbp], eax
	mov	edx, DWORD PTR -48[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	eax, 2
	sete	al
	movzx	eax, al
	add	DWORD PTR -28[rbp], eax
	mov	edx, DWORD PTR -48[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	eax, 3
	sete	al
	movzx	eax, al
	add	DWORD PTR -24[rbp], eax
	mov	edx, DWORD PTR -48[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	eax, 3
	jne	.L9
	mov	eax, DWORD PTR -48[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	jmp	.L10
.L9:
	pxor	xmm0, xmm0
.L10:
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	edx, DWORD PTR -48[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	eax, 4
	jne	.L11
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L11
	mov	eax, DWORD PTR -48[rbp]
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -20[rbp]
.L12:
	mov	DWORD PTR -20[rbp], eax
	add	DWORD PTR -44[rbp], 1
.L2:
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L13
	cmp	DWORD PTR -40[rbp], 0
	je	.L14
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L14:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	cmp	DWORD PTR -32[rbp], 0
	je	.L16
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L16:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	cmp	DWORD PTR -28[rbp], 0
	je	.L18
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L19
.L18:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L19:
	cmp	DWORD PTR -24[rbp], 0
	je	.L20
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR -16[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L21
.L20:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L21:
	cmp	DWORD PTR -20[rbp], 0
	je	.L22
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L23
.L22:
	mov	edi, 78
	call	putchar@PLT
.L23:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	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	"20697.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.align	2
.LC1:
	.ascii	"%d \000"
	.align	2
.LC2:
	.ascii	"N \000"
	.global	__aeabi_ddiv
	.align	2
.LC3:
	.ascii	"%.1lf \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 = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L26+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L2
.L13:
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L26+4
	bl	__isoc99_scanf
	ldr	r1, [fp, #-52]
	ldr	r3, .L26+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L3
	ldr	r3, [fp, #-52]
	b	.L4
.L3:
	mov	r3, #0
.L4:
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r1, [fp, #-52]
	ldr	r3, .L26+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-52]
	ldr	r3, .L26+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #1
	bne	.L5
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L6
	mov	r3, #1
	b	.L7
.L6:
	mvn	r3, #0
.L7:
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	b	.L8
.L5:
	mov	r3, #0
.L8:
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r1, [fp, #-52]
	ldr	r3, .L26+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r1, [fp, #-52]
	ldr	r3, .L26+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-52]
	ldr	r3, .L26+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #3
	bne	.L9
	ldr	r3, [fp, #-52]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	b	.L10
.L9:
	mov	r2, #0
	mov	r3, #0
.L10:
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-52]
	ldr	r3, .L26+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #4
	bne	.L11
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L11
	ldr	r3, [fp, #-52]
	b	.L12
.L11:
	ldr	r3, [fp, #-24]
.L12:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L2:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L14
	ldr	r1, [fp, #-44]
	ldr	r0, .L26+12
	bl	printf
	b	.L15
.L14:
	ldr	r0, .L26+16
	bl	printf
.L15:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L16
	ldr	r1, [fp, #-40]
	ldr	r0, .L26+12
	bl	printf
	b	.L17
.L16:
	ldr	r0, .L26+16
	bl	printf
.L17:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L18
	ldr	r1, [fp, #-32]
	ldr	r0, .L26+12
	bl	printf
	b	.L19
.L18:
	ldr	r0, .L26+16
	bl	printf
.L19:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L20
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L26+20
	bl	printf
	b	.L21
.L20:
	ldr	r0, .L26+16
	bl	printf
.L21:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L22
	ldr	r1, [fp, #-24]
	ldr	r0, .L26+4
	bl	printf
	b	.L23
.L22:
	mov	r0, #78
	bl	putchar
.L23:
	mov	r3, #0
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC4
	.word	.LC0
	.word	1717986919
	.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
