	.file	"641572.c"
	.intel_syntax noprefix
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 16020
dp:
	.zero	16020
	.globl	n
	.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	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	ans
	.align 4
	.type	ans, @object
	.size	ans, 4
ans:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d\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
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	lea	rdx, k[rip]
	lea	rsi, n[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L9:
	lea	rdx, d[rip]
	lea	rsi, t[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR t[rip]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR k[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dp[rip]
	mov	eax, DWORD PTR [rdx+rax]
	sub	ecx, eax
	mov	edx, ecx
	mov	eax, DWORD PTR ans[rip]
	cmp	edx, eax
	cmovge	eax, edx
	mov	DWORD PTR ans[rip], eax
	mov	eax, DWORD PTR k[rip]
	mov	DWORD PTR i[rip], eax
	jmp	.L3
.L6:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dp[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR t[rip]
	cmp	edx, eax
	jl	.L4
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dp[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L5
.L4:
	mov	eax, DWORD PTR t[rip]
	sub	eax, 1
.L5:
	mov	edx, DWORD PTR d[rip]
	add	edx, eax
	mov	eax, DWORD PTR i[rip]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, dp[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	ecx, DWORD PTR i[rip]
	cmp	edx, eax
	cmovle	eax, edx
	movsx	rdx, ecx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, dp[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR i[rip]
	sub	eax, 1
	mov	DWORD PTR i[rip], eax
.L3:
	mov	eax, DWORD PTR i[rip]
	test	eax, eax
	jg	.L6
	mov	edx, DWORD PTR dp[rip]
	mov	eax, DWORD PTR t[rip]
	cmp	edx, eax
	jl	.L7
	mov	eax, DWORD PTR dp[rip]
	jmp	.L8
.L7:
	mov	eax, DWORD PTR t[rip]
	sub	eax, 1
.L8:
	mov	edx, DWORD PTR d[rip]
	add	eax, edx
	mov	DWORD PTR dp[rip], eax
.L2:
	mov	eax, DWORD PTR n[rip]
	lea	edx, -1[rax]
	mov	DWORD PTR n[rip], edx
	test	eax, eax
	jne	.L9
	mov	eax, DWORD PTR k[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dp[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, 86400
	sub	edx, eax
	mov	eax, DWORD PTR ans[rip]
	cmp	edx, eax
	cmovge	eax, edx
	mov	DWORD PTR ans[rip], eax
	mov	eax, DWORD PTR ans[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	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	"641572.c"
	.text
	.comm	dp,16020,4
	.comm	n,4,4
	.comm	k,4,4
	.comm	t,4,4
	.comm	d,4,4
	.comm	i,4,4
	.comm	ans,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%d\000"
	.align	2
.LC1:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, .L11
	ldr	r1, .L11+4
	ldr	r0, .L11+8
	bl	__isoc99_scanf
	b	.L2
.L9:
	ldr	r2, .L11+12
	ldr	r1, .L11+16
	ldr	r0, .L11+8
	bl	__isoc99_scanf
	ldr	r3, .L11+16
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r1, .L11+20
	ldr	r3, [r1, r3, lsl #2]
	sub	r2, r2, r3
	ldr	r3, .L11+24
	ldr	r3, [r3]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	ldr	r2, .L11+24
	str	r3, [r2]
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r2, .L11+28
	str	r3, [r2]
	b	.L3
.L6:
	ldr	r3, .L11+28
	ldr	r3, [r3]
	ldr	r2, .L11+20
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L11+16
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L4
	ldr	r3, .L11+28
	ldr	r3, [r3]
	ldr	r2, .L11+20
	ldr	r3, [r2, r3, lsl #2]
	b	.L5
.L4:
	ldr	r3, .L11+16
	ldr	r3, [r3]
	sub	r3, r3, #1
.L5:
	ldr	r2, .L11+12
	ldr	r2, [r2]
	add	r2, r3, r2
	ldr	r3, .L11+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r1, .L11+20
	ldr	r3, [r1, r3, lsl #2]
	ldr	r1, .L11+28
	ldr	r1, [r1]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	ldr	r2, .L11+20
	str	r3, [r2, r1, lsl #2]
	ldr	r3, .L11+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L11+28
	str	r3, [r2]
.L3:
	ldr	r3, .L11+28
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L6
	ldr	r3, .L11+20
	ldr	r2, [r3]
	ldr	r3, .L11+16
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L7
	ldr	r3, .L11+20
	ldr	r3, [r3]
	b	.L8
.L7:
	ldr	r3, .L11+16
	ldr	r3, [r3]
	sub	r3, r3, #1
.L8:
	ldr	r2, .L11+12
	ldr	r2, [r2]
	add	r3, r3, r2
	ldr	r2, .L11+20
	str	r3, [r2]
.L2:
	ldr	r3, .L11+4
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r1, .L11+4
	str	r2, [r1]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r2, .L11+20
	ldr	r3, [r2, r3, lsl #2]
	rsb	r3, r3, #86016
	add	r3, r3, #384
	ldr	r2, .L11+24
	ldr	r2, [r2]
	cmp	r3, r2
	movge	r3, r3
	movlt	r3, r2
	ldr	r2, .L11+24
	str	r3, [r2]
	ldr	r3, .L11+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+32
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	k
	.word	n
	.word	.LC0
	.word	d
	.word	t
	.word	dp
	.word	ans
	.word	i
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
