	.file	"340352.c"
	.intel_syntax noprefix
	.text
	.globl	gcd
	.type	gcd, @function
gcd:
.LFB6:
	.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	sar	eax, 31
	xor	DWORD PTR -20[rbp], eax
	sub	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	sar	eax, 31
	xor	DWORD PTR -24[rbp], eax
	sub	DWORD PTR -24[rbp], eax
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], edx
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -24[rbp], eax
.L2:
	cmp	DWORD PTR -20[rbp], 0
	jle	.L3
	cmp	DWORD PTR -24[rbp], 0
	jg	.L4
.L3:
	mov	eax, 1
	cmp	DWORD PTR -20[rbp], 0
	cmovg	eax, DWORD PTR -20[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gcd, .-gcd
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d(%d/%d)"
.LC2:
	.string	"%d/%d"
	.text
	.globl	input
	.type	input, @function
input:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	QWORD PTR -136[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -116[rbp], 0
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 40
	jne	.L8
	mov	DWORD PTR -120[rbp], -1
.L8:
	add	DWORD PTR -116[rbp], 1
.L7:
	cmp	DWORD PTR -116[rbp], 99
	jle	.L9
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, -1
	jne	.L10
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, 4[rax]
	mov	rcx, QWORD PTR -136[rbp]
	lea	rdx, -120[rbp]
	lea	rax, -112[rbp]
	mov	r8, rsi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
.L10:
	mov	eax, DWORD PTR -120[rbp]
	test	eax, eax
	jns	.L11
	mov	rax, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR [rax]
	neg	eax
	mov	edx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	DWORD PTR [rax], edx
.L11:
	mov	eax, DWORD PTR -120[rbp]
	test	eax, eax
	jne	.L12
	mov	rax, QWORD PTR -136[rbp]
	lea	rcx, 4[rax]
	mov	rdx, QWORD PTR -136[rbp]
	lea	rax, -112[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
.L12:
	mov	rax, QWORD PTR -136[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -120[rbp]
	imul	eax, edx
	lea	edx, [rcx+rax]
	mov	rax, QWORD PTR -136[rbp]
	mov	DWORD PTR [rax], edx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	input, .-input
	.section	.rodata
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d(%d/%d)\n"
.LC5:
	.string	"%d/%d\n"
	.text
	.globl	out
	.type	out, @function
out:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 4
	mov	ecx, DWORD PTR [rdx]
	cdq
	idiv	ecx
	mov	eax, edx
	test	eax, eax
	jne	.L15
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 4
	mov	edi, DWORD PTR [rdx]
	cdq
	idiv	edi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 4
	mov	esi, DWORD PTR [rdx]
	cdq
	idiv	esi
	cdq
	xor	eax, edx
	sub	eax, edx
	test	eax, eax
	jle	.L17
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 4
	mov	edi, DWORD PTR [rdx]
	cdq
	idiv	edi
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 4
	mov	ecx, DWORD PTR [rdx]
	cdq
	idiv	ecx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	mov	esi, edx
	mov	edi, eax
	call	gcd
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rcx, 4[rdx]
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	mov	esi, DWORD PTR -8[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L17:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	mov	eax, 0
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	out, .-out
	.section	.rodata
.LC6:
	.string	"error"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L20
.L28:
	lea	rax, -136[rbp]
	mov	rdi, rax
	call	input
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	input
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -132[rbp]
	test	eax, eax
	je	.L21
	mov	eax, DWORD PTR -124[rbp]
	test	eax, eax
	jne	.L22
.L21:
	mov	BYTE PTR -112[rbp], 69
.L22:
	movzx	eax, BYTE PTR -112[rbp]
	mov	BYTE PTR -189[rbp], al
	cmp	BYTE PTR -189[rbp], 43
	jne	.L23
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -124[rbp]
	imul	eax, edx
	mov	DWORD PTR -148[rbp], eax
	mov	edx, DWORD PTR -136[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	ecx, edx
	imul	ecx, eax
	mov	edx, DWORD PTR -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	imul	eax, edx
	add	eax, ecx
	mov	DWORD PTR -144[rbp], eax
	mov	edx, DWORD PTR -148[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, edx
	mov	edi, eax
	call	gcd
	mov	DWORD PTR -140[rbp], eax
	mov	eax, DWORD PTR -144[rbp]
	cdq
	idiv	DWORD PTR -140[rbp]
	mov	DWORD PTR -120[rbp], eax
	mov	eax, DWORD PTR -148[rbp]
	cdq
	idiv	DWORD PTR -140[rbp]
	mov	DWORD PTR -116[rbp], eax
	lea	rax, -120[rbp]
	mov	rdi, rax
	call	out
	jmp	.L24
.L23:
	cmp	BYTE PTR -189[rbp], 45
	jne	.L25
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -124[rbp]
	imul	eax, edx
	mov	DWORD PTR -160[rbp], eax
	mov	edx, DWORD PTR -136[rbp]
	mov	eax, DWORD PTR -124[rbp]
	imul	eax, edx
	mov	ecx, DWORD PTR -128[rbp]
	mov	edx, DWORD PTR -132[rbp]
	imul	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -156[rbp], eax
	mov	edx, DWORD PTR -160[rbp]
	mov	eax, DWORD PTR -156[rbp]
	mov	esi, edx
	mov	edi, eax
	call	gcd
	mov	DWORD PTR -152[rbp], eax
	mov	eax, DWORD PTR -156[rbp]
	cdq
	idiv	DWORD PTR -152[rbp]
	mov	DWORD PTR -120[rbp], eax
	mov	eax, DWORD PTR -160[rbp]
	cdq
	idiv	DWORD PTR -152[rbp]
	mov	DWORD PTR -116[rbp], eax
	lea	rax, -120[rbp]
	mov	rdi, rax
	call	out
	jmp	.L24
.L25:
	cmp	BYTE PTR -189[rbp], 42
	jne	.L26
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -124[rbp]
	imul	eax, edx
	mov	DWORD PTR -172[rbp], eax
	mov	edx, DWORD PTR -136[rbp]
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, edx
	mov	DWORD PTR -168[rbp], eax
	mov	edx, DWORD PTR -172[rbp]
	mov	eax, DWORD PTR -168[rbp]
	mov	esi, edx
	mov	edi, eax
	call	gcd
	mov	DWORD PTR -164[rbp], eax
	mov	eax, DWORD PTR -168[rbp]
	cdq
	idiv	DWORD PTR -164[rbp]
	mov	DWORD PTR -120[rbp], eax
	mov	eax, DWORD PTR -172[rbp]
	cdq
	idiv	DWORD PTR -164[rbp]
	mov	DWORD PTR -116[rbp], eax
	lea	rax, -120[rbp]
	mov	rdi, rax
	call	out
	jmp	.L24
.L26:
	cmp	BYTE PTR -189[rbp], 47
	jne	.L27
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -188[rbp], eax
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -128[rbp], eax
	mov	eax, DWORD PTR -188[rbp]
	mov	DWORD PTR -124[rbp], eax
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -124[rbp]
	imul	eax, edx
	mov	DWORD PTR -184[rbp], eax
	mov	edx, DWORD PTR -136[rbp]
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, edx
	mov	DWORD PTR -180[rbp], eax
	mov	edx, DWORD PTR -184[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	esi, edx
	mov	edi, eax
	call	gcd
	mov	DWORD PTR -176[rbp], eax
	mov	eax, DWORD PTR -180[rbp]
	cdq
	idiv	DWORD PTR -176[rbp]
	mov	DWORD PTR -120[rbp], eax
	mov	eax, DWORD PTR -184[rbp]
	cdq
	idiv	DWORD PTR -176[rbp]
	mov	DWORD PTR -116[rbp], eax
	lea	rax, -120[rbp]
	mov	rdi, rax
	call	out
	jmp	.L24
.L27:
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L24:
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L20:
	movzx	eax, BYTE PTR -112[rbp]
	cmp	al, 110
	jne	.L28
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"340352.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	gcd
	.syntax unified
	.arm
	.fpu softvfp
	.type	gcd, %function
gcd:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	rsblt	r3, r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	rsblt	r3, r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L4:
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L3
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L4
.L3:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	movge	r3, r3
	movlt	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	gcd, .-gcd
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"%d(%d/%d)\000"
	.align	2
.LC2:
	.ascii	"%d/%d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	input
	.syntax unified
	.arm
	.fpu softvfp
	.type	input, %function
input:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-120]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L14+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L7
.L9:
	sub	r2, fp, #108
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #40
	bne	.L8
	mvn	r3, #0
	str	r3, [fp, #-116]
.L8:
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L7:
	ldr	r3, [fp, #-112]
	cmp	r3, #99
	ble	.L9
	ldr	r3, [fp, #-116]
	cmn	r3, #1
	bne	.L10
	ldr	r3, [fp, #-120]
	add	r3, r3, #4
	sub	r2, fp, #116
	sub	r0, fp, #108
	str	r3, [sp]
	ldr	r3, [fp, #-120]
	ldr	r1, .L14+8
	bl	__isoc99_sscanf
.L10:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bge	.L11
	ldr	r3, [fp, #-120]
	ldr	r3, [r3]
	rsb	r2, r3, #0
	ldr	r3, [fp, #-120]
	str	r2, [r3]
.L11:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-120]
	add	r3, r3, #4
	sub	r0, fp, #108
	ldr	r2, [fp, #-120]
	ldr	r1, .L14+12
	bl	__isoc99_sscanf
.L12:
	ldr	r3, [fp, #-120]
	ldr	r2, [r3]
	ldr	r3, [fp, #-120]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, [fp, #-116]
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-120]
	str	r2, [r3]
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	input, .-input
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.align	2
.LC5:
	.ascii	"%d(%d/%d)\012\000"
	.align	2
.LC6:
	.ascii	"%d/%d\012\000"
	.text
	.align	2
	.global	out
	.syntax unified
	.arm
	.fpu softvfp
	.type	out, %function
out:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L21
	bl	printf
	mov	r3, #0
	b	.L18
.L17:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idiv
	mov	r3, r0
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r3, #0
	ble	.L19
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	gcd
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r4, r3, #4
	ldr	r1, [fp, #-16]
	mov	r0, r2
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	ldr	r0, .L21+4
	bl	printf
	b	.L20
.L19:
	ldr	r3, [fp, #-24]
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L21+8
	bl	printf
.L20:
	mov	r3, #0
.L18:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	out, .-out
	.section	.rodata
	.align	2
.LC7:
	.ascii	"error\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #184
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #132
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r3, fp, #124
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r3, fp, #116
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L24
.L32:
	sub	r3, fp, #132
	mov	r0, r3
	bl	input
	sub	r3, fp, #124
	mov	r0, r3
	bl	input
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L35+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L26
.L25:
	mov	r3, #69
	strb	r3, [fp, #-108]
.L26:
	ldrb	r3, [fp, #-108]
	strb	r3, [fp, #-185]
	ldrb	r3, [fp, #-185]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L27
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-120]
	mul	r3, r2, r3
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-120]
	mul	r2, r3, r2
	ldr	r3, [fp, #-124]
	ldr	r1, [fp, #-128]
	mul	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-140]
	ldr	r1, [fp, #-144]
	ldr	r0, [fp, #-140]
	bl	gcd
	str	r0, [fp, #-136]
	ldr	r1, [fp, #-136]
	ldr	r0, [fp, #-140]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r1, [fp, #-136]
	ldr	r0, [fp, #-144]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-112]
	sub	r3, fp, #116
	mov	r0, r3
	bl	out
	b	.L28
.L27:
	ldrb	r3, [fp, #-185]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L29
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-120]
	mul	r3, r2, r3
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-120]
	mul	r2, r3, r2
	ldr	r3, [fp, #-124]
	ldr	r1, [fp, #-128]
	mul	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-152]
	ldr	r1, [fp, #-156]
	ldr	r0, [fp, #-152]
	bl	gcd
	str	r0, [fp, #-148]
	ldr	r1, [fp, #-148]
	ldr	r0, [fp, #-152]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r1, [fp, #-148]
	ldr	r0, [fp, #-156]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-112]
	sub	r3, fp, #116
	mov	r0, r3
	bl	out
	b	.L28
.L29:
	ldrb	r3, [fp, #-185]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L30
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-120]
	mul	r3, r2, r3
	str	r3, [fp, #-168]
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-124]
	mul	r3, r2, r3
	str	r3, [fp, #-164]
	ldr	r1, [fp, #-168]
	ldr	r0, [fp, #-164]
	bl	gcd
	str	r0, [fp, #-160]
	ldr	r1, [fp, #-160]
	ldr	r0, [fp, #-164]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r1, [fp, #-160]
	ldr	r0, [fp, #-168]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-112]
	sub	r3, fp, #116
	mov	r0, r3
	bl	out
	b	.L28
.L30:
	ldrb	r3, [fp, #-185]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L31
	ldr	r3, [fp, #-124]
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-184]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-120]
	mul	r3, r2, r3
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-124]
	mul	r3, r2, r3
	str	r3, [fp, #-176]
	ldr	r1, [fp, #-180]
	ldr	r0, [fp, #-176]
	bl	gcd
	str	r0, [fp, #-172]
	ldr	r1, [fp, #-172]
	ldr	r0, [fp, #-176]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r1, [fp, #-172]
	ldr	r0, [fp, #-180]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-112]
	sub	r3, fp, #116
	mov	r0, r3
	bl	out
	b	.L28
.L31:
	ldr	r0, .L35+8
	bl	puts
.L28:
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L35+4
	bl	__isoc99_scanf
.L24:
	ldrb	r3, [fp, #-108]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L32
	mov	r3, #0
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC8
	.word	.LC0
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
