Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define max(p,q)((p)>(q)?(p):(q))

int c(const void*a,const void*b){
	return strcmp(a,b);
}

char s[99][99];
int main(){
	ll n;
	while(scanf("%lld",&n),n){
		char temp[99];
		rep(i,0,n){
			scanf("%s",temp);
			int n=strlen(temp);
			int cnt=0;
			s[i][cnt++]=temp[0];
			rep(j,1,n)if(temp[j-1]=='a'||temp[j-1]=='i'||temp[j-1]=='u'||temp[j-1]=='e'||temp[j-1]=='o'){
				s[i][cnt++]=temp[j];
			}
			s[i][cnt]=0;
		}
		qsort(s,n,99,c);
//		rep(i,0,n)puts(s[i]);
		int ans=0;
		rep(i,0,n-1){
			if(!strcmp(s[i],s[i+1])){
				ans=-1;
				break;
			}
			int j=0;
			while(s[i][j]==s[i+1][j])j++;
			ans=max(ans,j+1);
		}
		printf("%d\n",ans);
	}
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.type	c, @function
c:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	c, .-c
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 9801
s:
	.zero	9801
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L4
.L17:
	movq	$0, -136(%rbp)
	jmp	.L5
.L10:
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -148(%rbp)
	movl	$0, -160(%rbp)
	movl	-160(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -160(%rbp)
	movzbl	-112(%rbp), %edx
	movslq	%eax, %rsi
	movq	-136(%rbp), %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$5, %rcx
	addq	%rcx, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	s(%rip), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	movq	$1, -128(%rbp)
	jmp	.L6
.L9:
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$97, %al
	je	.L7
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$105, %al
	je	.L7
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$117, %al
	je	.L7
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	je	.L7
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L8
.L7:
	movl	-160(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -160(%rbp)
	leaq	-112(%rbp), %rcx
	movq	-128(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rdx), %edx
	movslq	%eax, %rsi
	movq	-136(%rbp), %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$5, %rcx
	addq	%rcx, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	s(%rip), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
.L8:
	addq	$1, -128(%rbp)
.L6:
	movl	-148(%rbp), %eax
	cltq
	cmpq	%rax, -128(%rbp)
	jl	.L9
	movl	-160(%rbp), %eax
	movslq	%eax, %rcx
	movq	-136(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$5, %rdx
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	s(%rip), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	addq	$1, -136(%rbp)
.L5:
	movq	-144(%rbp), %rax
	cmpq	%rax, -136(%rbp)
	jl	.L10
	movq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	movl	$99, %edx
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -156(%rbp)
	movq	$0, -120(%rbp)
	jmp	.L11
.L16:
	movq	-120(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$5, %rdx
	addq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rax, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$5, %rcx
	addq	%rcx, %rax
	leaq	s(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L12
	movl	$-1, -156(%rbp)
	jmp	.L13
.L12:
	movl	$0, -152(%rbp)
	jmp	.L14
.L15:
	addl	$1, -152(%rbp)
.L14:
	movl	-152(%rbp), %eax
	movslq	%eax, %rcx
	movq	-120(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$5, %rdx
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	s(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-120(%rbp), %rax
	leaq	1(%rax), %rcx
	movl	-152(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$5, %rcx
	addq	%rcx, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	s(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L15
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movl	-156(%rbp), %eax
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	movl	%eax, -156(%rbp)
	addq	$1, -120(%rbp)
.L11:
	movq	-144(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -120(%rbp)
	jl	.L16
.L13:
	movl	-156(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L4:
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-144(%rbp), %rax
	testq	%rax, %rax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	c
	.type	c, @function
c:
.LFB51:
	.cfi_startproc
	endbr64
	jmp	strcmp@PLT
	.cfi_endproc
.LFE51:
	.size	c, .-c
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	s(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	$66561, %ebx
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %r9
	testq	%r9, %r9
	je	.L14
	leaq	s(%rip), %r13
	movl	$0, %r15d
	leaq	32(%rsp), %r12
	leaq	.LC0(%rip), %r14
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	movzbl	32(%rsp), %edx
	movb	%dl, 0(%r13)
	cmpq	$1, %rax
	jbe	.L18
	leaq	(%r15,%r15,2), %r10
	leaq	(%r12,%rax), %r9
	movl	$1, %ecx
	movq	%r10, %rax
	leaq	33(%rsp), %rdx
	salq	$5, %rax
	addq	%rax, %r10
	addq	%rbp, %r10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L33:
	subl	$101, %eax
	cmpb	$16, %al
	ja	.L7
	btq	%rax, %rbx
	jc	.L6
.L7:
	addq	$1, %rdx
	cmpq	%r9, %rdx
	je	.L5
.L8:
	movzbl	-1(%rdx), %eax
	movl	%eax, %edi
	andl	$-9, %edi
	cmpb	$97, %dil
	jne	.L33
.L6:
	movzbl	(%rdx), %edi
	movslq	%ecx, %rax
	addq	$1, %rdx
	addl	$1, %ecx
	movb	%dil, (%r10,%rax)
	cmpq	%r9, %rdx
	jne	.L8
.L5:
	leaq	(%r15,%r15,2), %rax
	movq	24(%rsp), %r9
	movslq	%ecx, %rcx
	addq	$1, %r15
	movq	%rax, %rdx
	addq	$99, %r13
	salq	$5, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	movb	$0, (%rax,%rcx)
	cmpq	%r15, %r9
	jg	.L9
.L16:
	leaq	c(%rip), %rcx
	movl	$99, %edx
	movq	%r9, %rsi
	movq	%rbp, %rdi
	call	qsort@PLT
	movq	24(%rsp), %rax
	cmpq	$1, %rax
	jle	.L19
	leaq	(%rax,%rax,2), %rax
	leaq	s(%rip), %r13
	xorl	%r12d, %r12d
	movq	%rax, %rdx
	leaq	99(%r13), %r15
	salq	$5, %rdx
	addq	%rdx, %rax
	leaq	0(%rbp,%rax), %r14
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r15, %rsi
	movq	%r13, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L20
	movzbl	0(%r13), %eax
	cmpb	%al, (%r15)
	jne	.L21
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L12:
	movzbl	0(%r13,%rax), %edx
	movl	%eax, %esi
	addq	$1, %rax
	cmpb	-1(%r15,%rax), %dl
	je	.L12
	addl	$1, %esi
.L11:
	cmpl	%esi, %r12d
	cmovl	%esi, %r12d
	addq	$99, %r15
	addq	$99, %r13
	cmpq	%r14, %r15
	jne	.L13
.L10:
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	movl	$1, %esi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	movl	$1, %ecx
	jmp	.L5
.L20:
	movl	$-1, %r12d
	jmp	.L10
.L14:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	xorl	%r12d, %r12d
	jmp	.L10
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 9801
s:
	.zero	9801
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	c
	.type	c, @function
c:
.LFB51:
	.cfi_startproc
	endbr64
	jmp	strcmp@PLT
	.cfi_endproc
.LFE51:
	.size	c, .-c
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	s(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	$66561, %ebx
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %r9
	testq	%r9, %r9
	je	.L14
	leaq	s(%rip), %r13
	movl	$0, %r15d
	leaq	32(%rsp), %r12
	leaq	.LC0(%rip), %r14
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	movzbl	32(%rsp), %edx
	movb	%dl, 0(%r13)
	cmpq	$1, %rax
	jbe	.L18
	leaq	(%r15,%r15,2), %r10
	leaq	(%r12,%rax), %r9
	movl	$1, %ecx
	movq	%r10, %rax
	leaq	33(%rsp), %rdx
	salq	$5, %rax
	addq	%rax, %r10
	addq	%rbp, %r10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L33:
	subl	$101, %eax
	cmpb	$16, %al
	ja	.L7
	btq	%rax, %rbx
	jc	.L6
.L7:
	addq	$1, %rdx
	cmpq	%r9, %rdx
	je	.L5
.L8:
	movzbl	-1(%rdx), %eax
	movl	%eax, %edi
	andl	$-9, %edi
	cmpb	$97, %dil
	jne	.L33
.L6:
	movzbl	(%rdx), %edi
	movslq	%ecx, %rax
	addq	$1, %rdx
	addl	$1, %ecx
	movb	%dil, (%r10,%rax)
	cmpq	%r9, %rdx
	jne	.L8
.L5:
	leaq	(%r15,%r15,2), %rax
	movq	24(%rsp), %r9
	movslq	%ecx, %rcx
	addq	$1, %r15
	movq	%rax, %rdx
	addq	$99, %r13
	salq	$5, %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	movb	$0, (%rax,%rcx)
	cmpq	%r15, %r9
	jg	.L9
.L16:
	leaq	c(%rip), %rcx
	movl	$99, %edx
	movq	%r9, %rsi
	movq	%rbp, %rdi
	call	qsort@PLT
	movq	24(%rsp), %rax
	cmpq	$1, %rax
	jle	.L19
	leaq	(%rax,%rax,2), %rax
	leaq	s(%rip), %r13
	xorl	%r12d, %r12d
	movq	%rax, %rdx
	leaq	99(%r13), %r15
	salq	$5, %rdx
	addq	%rdx, %rax
	leaq	0(%rbp,%rax), %r14
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r15, %rsi
	movq	%r13, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L20
	movzbl	0(%r13), %eax
	cmpb	%al, (%r15)
	jne	.L21
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L12:
	movzbl	0(%r13,%rax), %edx
	movl	%eax, %esi
	addq	$1, %rax
	cmpb	-1(%r15,%rax), %dl
	je	.L12
	addl	$1, %esi
.L11:
	cmpl	%esi, %r12d
	cmovl	%esi, %r12d
	addq	$99, %r15
	addq	$99, %r13
	cmpq	%r14, %r15
	jne	.L13
.L10:
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	movl	$1, %esi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	movl	$1, %ecx
	jmp	.L5
.L20:
	movl	$-1, %r12d
	jmp	.L10
.L14:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	xorl	%r12d, %r12d
	jmp	.L10
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 9801
s:
	.zero	9801
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define max(p,q)((p)>(q)?(p):(q))

int c(const void*a,const void*b){
	return strcmp(a,b);
}

char s[99][99];
int main(){
	ll n;
	while(scanf("%lld",&n),n){
		char temp[99];
		rep(i,0,n){
			scanf("%s",temp);
			int n=strlen(temp);
			int cnt=0;
			s[i][cnt++]=temp[0];
			rep(j,1,n)if(temp[j-1]=='a'||temp[j-1]=='i'||temp[j-1]=='u'||temp[j-1]=='e'||temp[j-1]=='o'){
				s[i][cnt++]=temp[j];
			}
			s[i][cnt]=0;
		}
		qsort(s,n,99,c);
//		rep(i,0,n)puts(s[i]);
		int ans=0;
		rep(i,0,n-1){
			if(!strcmp(s[i],s[i+1])){
				ans=-1;
				break;
			}
			int j=0;
			while(s[i][j]==s[i+1][j])j++;
			ans=max(ans,j+1);
		}
		printf("%d\n",ans);
	}
}

3
haneda
oookayama
ssu
2
azusa
azishirabe
2
snuke
snake
4
haneda
honda
hanamaki
hawaii
0
 3
haneda
oookayama
tsv
2
azusa
azishirabe
2
rnuke
snake
4
haneda
honda
hanamaki
hawbii
0
 3
haneda
oookayama
tsv
2
azvsa
azishirabe
2
rnuke
snake
4
haneda
honda
hanamaki
hawbii
0
 3
haneda
oookayama
stv
2
azvsa
azishirabe
0
rnuke
snake
4
haneda
honda
hanamaki
hawbii
0
 3
haneda
oookayama
tsu
0
azusa
azishirabe
2
snuke
snake
4
haneda
honda
hanamaki
hawaih
0
 3
adenah
oookayama
tsu
2
ayusa
azirhisabe
2
ekuns
snake
4
haneda
hond`
hanamaki
hawaii
0
 3
haneda
oookayama
tsv
2
azusa
azishirabe
2
snuke
snbke
4
haneda
honda
hanamaki
hawbii
0
 3
haneda
oookayama
stu
2
azusa
ebarihsiza
2
snuke
snake
4
haneda
honda
hanamaki
hawaih
0
 3
adhnae
amayakooo
tsu
2
ayusa
azirhisabe
2
ekuos
snake
4
hanedb
hond`
hanamaki
hawaii
0
 3
haneda
oookayama
stu
2
azusa
ebarihsiza
2
ekuns
snake
4
haneda
honda
hanamaki
hawaih
0

1
4
-1
3
 1
4
1
3
 1
3
1
3
 1
3
 1
 1
2
1
3
 1
4
2
3
 1
1
-1
3
 2
2
1
3
 1
1
1
3

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define max(p,q)((p)>(q)?(p):(q))

int c(const void*a,const void*b){
	return strcmp(a,b);
}

char s[99][99];
int main(){
	ll n;
	while(scanf("%lld",&n),n){
		char temp[99];
		rep(i,0,n){
			scanf("%s",temp);
			int n=strlen(temp);
			int cnt=0;
			s[i][cnt++]=temp[0];
			rep(j,1,n)if(temp[j-1]=='a'||temp[j-1]=='i'||temp[j-1]=='u'||temp[j-1]=='e'||temp[j-1]=='o'){
				s[i][cnt++]=temp[j];
			}
			s[i][cnt]=0;
		}
		qsort(s,n,99,c);
//		rep(i,0,n)puts(s[i]);
		int ans=0;
		rep(i,0,n-1){
			if(!strcmp(s[i],s[i+1])){
				ans=-1;
				break;
			}
			int j=0;
			while(s[i][j]==s[i+1][j])j++;
			ans=max(ans,j+1);
		}
		printf("%d\n",ans);
	}
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.type	c, @function
c:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	c, .-c
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 9801
s:
	.zero	9801
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L4
.L17:
	movq	$0, -136(%rbp)
	jmp	.L5
.L10:
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -148(%rbp)
	movl	$0, -160(%rbp)
	movl	-160(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -160(%rbp)
	movzbl	-112(%rbp), %edx
	movslq	%eax, %rsi
	movq	-136(%rbp), %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$5, %rcx
	addq	%rcx, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	s(%rip), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	movq	$1, -128(%rbp)
	jmp	.L6
.L9:
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$97, %al
	je	.L7
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$105, %al
	je	.L7
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$117, %al
	je	.L7
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	je	.L7
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L8
.L7:
	movl	-160(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -160(%rbp)
	leaq	-112(%rbp), %rcx
	movq	-128(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rdx), %edx
	movslq	%eax, %rsi
	movq	-136(%rbp), %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$5, %rcx
	addq	%rcx, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	s(%rip), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
.L8:
	addq	$1, -128(%rbp)
.L6:
	movl	-148(%rbp), %eax
	cltq
	cmpq	%rax, -128(%rbp)
	jl	.L9
	movl	-160(%rbp), %eax
	movslq	%eax, %rcx
	movq	-136(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$5, %rdx
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	s(%rip), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	addq	$1, -136(%rbp)
.L5:
	movq	-144(%rbp), %rax
	cmpq	%rax, -136(%rbp)
	jl	.L10
	movq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	movl	$99, %edx
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -156(%rbp)
	movq	$0, -120(%rbp)
	jmp	.L11
.L16:
	movq	-120(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$5, %rdx
	addq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rax, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$5, %rcx
	addq	%rcx, %rax
	leaq	s(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L12
	movl	$-1, -156(%rbp)
	jmp	.L13
.L12:
	movl	$0, -152(%rbp)
	jmp	.L14
.L15:
	addl	$1, -152(%rbp)
.L14:
	movl	-152(%rbp), %eax
	movslq	%eax, %rcx
	movq	-120(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$5, %rdx
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	s(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-120(%rbp), %rax
	leaq	1(%rax), %rcx
	movl	-152(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$5, %rcx
	addq	%rcx, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	s(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L15
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movl	-156(%rbp), %eax
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	movl	%eax, -156(%rbp)
	addq	$1, -120(%rbp)
.L11:
	movq	-144(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -120(%rbp)
	jl	.L16
.L13:
	movl	-156(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L4:
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-144(%rbp), %rax
	testq	%rax, %rax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	c
	.type	c, @function
c:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	c, .-c
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 9801
s:
	.zero	9801
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L4
.L17:
	movq	$0, -136(%rbp)
	jmp	.L5
.L10:
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -148(%rbp)
	movl	$0, -160(%rbp)
	movl	-160(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -160(%rbp)
	movzbl	-112(%rbp), %edx
	movslq	%eax, %rsi
	movq	-136(%rbp), %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$5, %rcx
	addq	%rcx, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	s(%rip), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	movq	$1, -128(%rbp)
	jmp	.L6
.L9:
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$97, %al
	je	.L7
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$105, %al
	je	.L7
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$117, %al
	je	.L7
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$101, %al
	je	.L7
	movq	-128(%rbp), %rax
	subq	$1, %rax
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L8
.L7:
	movl	-160(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -160(%rbp)
	leaq	-112(%rbp), %rcx
	movq	-128(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rdx), %edx
	movslq	%eax, %rsi
	movq	-136(%rbp), %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$5, %rcx
	addq	%rcx, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	s(%rip), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
.L8:
	addq	$1, -128(%rbp)
.L6:
	movl	-148(%rbp), %eax
	cltq
	cmpq	%rax, -128(%rbp)
	jl	.L9
	movl	-160(%rbp), %eax
	movslq	%eax, %rcx
	movq	-136(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$5, %rdx
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	s(%rip), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	addq	$1, -136(%rbp)
.L5:
	movq	-144(%rbp), %rax
	cmpq	%rax, -136(%rbp)
	jl	.L10
	movq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	movl	$99, %edx
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -156(%rbp)
	movq	$0, -120(%rbp)
	jmp	.L11
.L16:
	movq	-120(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$5, %rdx
	addq	%rdx, %rax
	leaq	s(%rip), %rdx
	addq	%rax, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$5, %rcx
	addq	%rcx, %rax
	leaq	s(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L12
	movl	$-1, -156(%rbp)
	jmp	.L13
.L12:
	movl	$0, -152(%rbp)
	jmp	.L14
.L15:
	addl	$1, -152(%rbp)
.L14:
	movl	-152(%rbp), %eax
	movslq	%eax, %rcx
	movq	-120(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	salq	$5, %rdx
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	s(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-120(%rbp), %rax
	leaq	1(%rax), %rcx
	movl	-152(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	salq	$5, %rcx
	addq	%rcx, %rax
	leaq	(%rax,%rsi), %rcx
	leaq	s(%rip), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L15
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movl	-156(%rbp), %eax
	cmpl	%edx, %eax
	cmovl	%edx, %eax
	movl	%eax, -156(%rbp)
	addq	$1, -120(%rbp)
.L11:
	movq	-144(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -120(%rbp)
	jl	.L16
.L13:
	movl	-156(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L4:
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-144(%rbp), %rax
	testq	%rax, %rax
	jne	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
