#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ a;

/* Variables and functions */
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
scalar_t__ isspace(char);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ stdin;
int strlen(char *);
int main() {
  char a[64];
  int len = 0;
  int i = 0;
  int begin = 0;
  fgets(a, sizeof(a), stdin);
  len = strlen(a);
  for (i = 0; i < len; i++) {
    begin = 0;
    if (i == 0) {
      begin = 1;
    } else if (isspace(a[i - 1])) {
      begin = 1;
    }
    switch (a[i]) {
    case 'a':
    case 'e':
    case 'i':
    case 'o':
    case 'u':
      if (begin) {
        putchar(a[i]);
      }
      break;
    default:
      putchar(a[i]);
      break;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
lea    -0x50(%rbp),%rdi
mov    0x2e79(%rip),%rax
mov    (%rax),%edx
mov    $0x40,%esi
call   1060 <fgets@plt>
lea    -0x50(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x54(%rbp)
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x54(%rbp),%eax
jge    127b <main+0x13b>
movl   $0x0,-0x5c(%rbp)
cmpl   $0x0,-0x58(%rbp)
jne    11b7 <main+0x77>
movl   $0x1,-0x5c(%rbp)
jmp    11df <main+0x9f>
mov    -0x58(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0x50(%rbp,%rax,1),%edi
call   1050 <isspace@plt>
cmp    $0x0,%rax
je     11da <main+0x9a>
movl   $0x1,-0x5c(%rbp)
jmp    11df <main+0x9f>
movslq -0x58(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%eax
mov    %eax,-0x60(%rbp)
sub    $0x61,%eax
je     123d <main+0xfd>
jmp    11f9 <main+0xb9>
mov    -0x60(%rbp),%eax
sub    $0x65,%eax
je     123d <main+0xfd>
jmp    120a <main+0xca>
mov    -0x60(%rbp),%eax
sub    $0x69,%eax
je     123d <main+0xfd>
jmp    121b <main+0xdb>
mov    -0x60(%rbp),%eax
sub    $0x6f,%eax
je     123d <main+0xfd>
jmp    122c <main+0xec>
mov    -0x60(%rbp),%eax
sub    $0x75,%eax
jne    125a <main+0x11a>
jmp    123d <main+0xfd>
cmpl   $0x0,-0x5c(%rbp)
je     1255 <main+0x115>
movslq -0x58(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%edi
call   1030 <putchar@plt>
jmp    1268 <main+0x128>
movslq -0x58(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%edi
call   1030 <putchar@plt>
jmp    126d <main+0x12d>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    118e <main+0x4e>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x40,%rsp
mov    0x2e99(%rip),%rax
mov    (%rax),%edx
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x40,%esi
call   1060 <fgets@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    117d <main+0x3d>
mov    %eax,%ebx
movsbl (%rsp),%edi
call   1030 <putchar@plt>
cmp    $0x1,%ebx
jne    1188 <main+0x48>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    %ebx,%r14d
mov    $0x1,%ebx
mov    $0x495,%ebp
jmp    11b1 <main+0x71>
nopw   0x0(%rax,%rax,1)
movsbl %cl,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
je     117d <main+0x3d>
movsbl -0x1(%rsp,%rbx,1),%edi
call   1050 <isspace@plt>
movsbl (%rsp,%rbx,1),%ecx
lea    -0x61(%rcx),%edx
ror    %edx
cmp    $0xa,%edx
ja     11a0 <main+0x60>
bt     %edx,%ebp
jae    11a0 <main+0x60>
test   %rax,%rax
jne    11a0 <main+0x60>
jmp    11a8 <main+0x68>

LLVM IR (-O0):
@stdin = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca [64 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
%6 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%7 = load i32, i32* @stdin
%8 = call i32 @fgets(i8* %6, i32 64, i32 %7)
%9 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%10 = call i32 @strlen(i8* %9)
store i32 %10, i32* %3
store i32 0, i32* %4
br label %11
11: ; preds = %52, %0
%12 = load i32, i32* %4
%13 = load i32, i32* %3
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %55
15: ; preds = %11
store i32 0, i32* %5
%16 = load i32, i32* %4
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 1, i32* %5
br label %29
19: ; preds = %15
%20 = load i32, i32* %4
%21 = sub nsw i32 %20, 1
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 %22
%24 = load i8, i8* %23
%25 = call i64 @isspace(i8 signext %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %19
store i32 1, i32* %5
br label %28
28: ; preds = %27, %19
br label %29
29: ; preds = %28, %18
%30 = load i32, i32* %4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 %31
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
switch i32 %34, label %45 [
i32 97, label %35
i32 101, label %35
i32 105, label %35
i32 111, label %35
i32 117, label %35
]
35: ; preds = %29, %29, %29, %29, %29
%36 = load i32, i32* %5
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %44
38: ; preds = %35
%39 = load i32, i32* %4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 %40
%42 = load i8, i8* %41
%43 = call i32 @putchar(i8 signext %42)
br label %44
44: ; preds = %38, %35
br label %51
45: ; preds = %29
%46 = load i32, i32* %4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 %47
%49 = load i8, i8* %48
%50 = call i32 @putchar(i8 signext %49)
br label %51
51: ; preds = %45, %44
br label %52
52: ; preds = %51
%53 = load i32, i32* %4
%54 = add nsw i32 %53, 1
store i32 %54, i32* %4
br label %11
55: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32 0
define i32 @main() {
%1 = alloca [64 x i8]
%2 = getelementptr inbounds [64 x i8], [64 x i8]* %1, i64 0, i64 0
%3 = load i32, i32* @stdin
%4 = call i32 @fgets(i8* %2, i32 64, i32 %3)
%5 = call i32 @strlen(i8* %2)
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %30
7: ; preds = %0
%8 = zext i32 %5 to i64
%9 = load i8, i8* %2
%10 = call i32 @putchar(i8 signext %9)
%11 = icmp eq i32 %5, 1
br i1 %11, label %30, label %12
12: ; preds = %7, %27
%13 = phi i64 [ %28, %27 ], [ 1, %7 ]
%14 = add nsw i64 %13, -1
%15 = getelementptr inbounds [64 x i8], [64 x i8]* %1, i64 0, i64 %14
%16 = load i8, i8* %15
%17 = call i64 @isspace(i8 signext %16)
%18 = getelementptr inbounds [64 x i8], [64 x i8]* %1, i64 0, i64 %13
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = add nsw i32 %20, -97
%22 = call i32 @llvm.fshl.i32(i32 %21, i32 %21, i32 31)
switch i32 %22, label %25 [
i32 0, label %23
i32 2, label %23
i32 4, label %23
i32 7, label %23
i32 10, label %23
]
23: ; preds = %12, %12, %12, %12, %12
%24 = icmp eq i64 %17, 0
br i1 %24, label %27, label %25
25: ; preds = %12, %23
%26 = call i32 @putchar(i8 signext %19)
br label %27
27: ; preds = %25, %23
%28 = add nuw nsw i64 %13, 1
%29 = icmp eq i64 %28, %8
br i1 %29, label %30, label %12
30: ; preds = %27, %7, %0
ret i32 0
}