	.file	"402670.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"TTT"
.LC3:
	.string	"TTH"
.LC4:
	.string	"THT"
.LC5:
	.string	"THH"
.LC6:
	.string	"HTT"
.LC7:
	.string	"HTH"
.LC8:
	.string	"HHT"
.LC9:
	.string	"HHH"
.LC10:
	.string	"%d "
.LC11:
	.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, 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -144[rbp], 0
	mov	DWORD PTR -140[rbp], 1
	mov	DWORD PTR -136[rbp], 2
	mov	DWORD PTR -132[rbp], 3
	mov	DWORD PTR -128[rbp], 4
	mov	DWORD PTR -124[rbp], 5
	mov	DWORD PTR -120[rbp], 6
	mov	DWORD PTR -116[rbp], 7
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -108[rbp], 1
	mov	DWORD PTR -104[rbp], 2
	mov	DWORD PTR -100[rbp], 3
	mov	DWORD PTR -96[rbp], 4
	mov	DWORD PTR -92[rbp], 5
	mov	DWORD PTR -88[rbp], 6
	mov	DWORD PTR -84[rbp], 7
	mov	DWORD PTR -68[rbp], 6513249
	lea	rax, -192[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L17:
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	lea	rax, -188[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -64[rbp]
	mov	BYTE PTR -68[rbp], al
	movzx	eax, BYTE PTR -63[rbp]
	mov	BYTE PTR -67[rbp], al
	movzx	eax, BYTE PTR -62[rbp]
	mov	BYTE PTR -66[rbp], al
	lea	rax, -68[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -176[rbp]
	add	eax, 1
	mov	DWORD PTR -176[rbp], eax
	mov	DWORD PTR -180[rbp], 0
.L3:
	lea	rax, -68[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR -172[rbp]
	add	eax, 1
	mov	DWORD PTR -172[rbp], eax
	mov	DWORD PTR -180[rbp], 1
.L4:
	lea	rax, -68[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR -168[rbp]
	add	eax, 1
	mov	DWORD PTR -168[rbp], eax
	mov	DWORD PTR -180[rbp], 2
.L5:
	lea	rax, -68[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR -164[rbp]
	add	eax, 1
	mov	DWORD PTR -164[rbp], eax
	mov	DWORD PTR -180[rbp], 3
.L6:
	lea	rax, -68[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -160[rbp]
	add	eax, 1
	mov	DWORD PTR -160[rbp], eax
	mov	DWORD PTR -180[rbp], 4
.L7:
	lea	rax, -68[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -156[rbp]
	add	eax, 1
	mov	DWORD PTR -156[rbp], eax
	mov	DWORD PTR -180[rbp], 5
.L8:
	lea	rax, -68[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	mov	eax, DWORD PTR -152[rbp]
	add	eax, 1
	mov	DWORD PTR -152[rbp], eax
	mov	DWORD PTR -180[rbp], 6
.L9:
	lea	rax, -68[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -148[rbp]
	add	eax, 1
	mov	DWORD PTR -148[rbp], eax
	mov	DWORD PTR -180[rbp], 7
.L10:
	mov	DWORD PTR -184[rbp], 3
	jmp	.L11
.L14:
	mov	eax, DWORD PTR -184[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	cmp	al, 84
	jne	.L12
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	mov	eax, DWORD PTR -144[rbp+rax*8]
	mov	DWORD PTR -180[rbp], eax
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	mov	eax, DWORD PTR -140[rbp+rax*8]
	mov	DWORD PTR -180[rbp], eax
.L13:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	mov	DWORD PTR -176[rbp+rax*4], edx
	add	DWORD PTR -184[rbp], 1
.L11:
	cmp	DWORD PTR -184[rbp], 39
	jle	.L14
	mov	eax, DWORD PTR -188[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -184[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -184[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -184[rbp], 1
.L15:
	cmp	DWORD PTR -184[rbp], 6
	jle	.L16
	mov	eax, DWORD PTR -148[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	eax, DWORD PTR -192[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -192[rbp], edx
	test	eax, eax
	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	"402670.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.ascii	"TTT\000"
	.align	2
.LC4:
	.ascii	"TTH\000"
	.align	2
.LC5:
	.ascii	"THT\000"
	.align	2
.LC6:
	.ascii	"THH\000"
	.align	2
.LC7:
	.ascii	"HTT\000"
	.align	2
.LC8:
	.ascii	"HTH\000"
	.align	2
.LC9:
	.ascii	"HHT\000"
	.align	2
.LC10:
	.ascii	"HHH\000"
	.align	2
.LC11:
	.ascii	"%d \000"
	.align	2
.LC12:
	.ascii	"%d\012\000"
	.align	2
.LC0:
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.word	6
	.word	7
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.word	6
	.word	7
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L20+4
	sub	ip, fp, #120
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L20+8
	str	r3, [fp, #-56]
	sub	r3, fp, #168
	mov	r1, r3
	ldr	r0, .L20+12
	bl	__isoc99_scanf
	b	.L2
.L17:
	sub	r3, fp, #152
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #164
	mov	r1, r3
	ldr	r0, .L20+12
	bl	__isoc99_scanf
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L20+16
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-52]	@ zero_extendqisi2
	strb	r3, [fp, #-56]
	ldrb	r3, [fp, #-51]	@ zero_extendqisi2
	strb	r3, [fp, #-55]
	ldrb	r3, [fp, #-50]	@ zero_extendqisi2
	strb	r3, [fp, #-54]
	sub	r3, fp, #56
	ldr	r1, .L20+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-156]
.L3:
	sub	r3, fp, #56
	ldr	r1, .L20+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
	mov	r3, #1
	str	r3, [fp, #-156]
.L4:
	sub	r3, fp, #56
	ldr	r1, .L20+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
	mov	r3, #2
	str	r3, [fp, #-156]
.L5:
	sub	r3, fp, #56
	ldr	r1, .L20+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
	mov	r3, #3
	str	r3, [fp, #-156]
.L6:
	sub	r3, fp, #56
	ldr	r1, .L20+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
	mov	r3, #4
	str	r3, [fp, #-156]
.L7:
	sub	r3, fp, #56
	ldr	r1, .L20+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	mov	r3, #5
	str	r3, [fp, #-156]
.L8:
	sub	r3, fp, #56
	ldr	r1, .L20+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
	mov	r3, #6
	str	r3, [fp, #-156]
.L9:
	sub	r3, fp, #56
	ldr	r1, .L20+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
	mov	r3, #7
	str	r3, [fp, #-156]
.L10:
	mov	r3, #3
	str	r3, [fp, #-160]
	b	.L11
.L14:
	sub	r2, fp, #52
	ldr	r3, [fp, #-160]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #84
	bne	.L12
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-116]
	str	r3, [fp, #-156]
	b	.L13
.L12:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-112]
	str	r3, [fp, #-156]
.L13:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-148]
	add	r2, r3, #1
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-148]
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L11:
	ldr	r3, [fp, #-160]
	cmp	r3, #39
	ble	.L14
	ldr	r3, [fp, #-164]
	mov	r1, r3
	ldr	r0, .L20+52
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L15
.L16:
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-148]
	mov	r1, r3
	ldr	r0, .L20+52
	bl	printf
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L15:
	ldr	r3, [fp, #-160]
	cmp	r3, #6
	ble	.L16
	ldr	r3, [fp, #-124]
	mov	r1, r3
	ldr	r0, .L20+56
	bl	printf
.L2:
	ldr	r3, [fp, #-168]
	sub	r2, r3, #1
	str	r2, [fp, #-168]
	cmp	r3, #0
	bne	.L17
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC13
	.word	.LC0
	.word	6513249
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
