#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*/ html;

/* Variables and functions */
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ stdin;
int strlen(char *);
int main() {
  char html[128];
  char decoded_html[128];
  int tag = 0;
  int i = 0;
  int j = 0;
  fgets(html, sizeof(html), stdin);
  for (i = 0; i < strlen(html); i++) {
    if (html[i] == '<') {
      tag = 1;
    } else if (html[i] == '>') {
      tag = 0;
      continue;
    }
    if (!tag) {
      decoded_html[j++] = html[i];
    }
  }
  decoded_html[j] = 0;
  puts(decoded_html);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x114(%rbp)
movl   $0x0,-0x118(%rbp)
movl   $0x0,-0x11c(%rbp)
lea    -0x90(%rbp),%rdi
mov    0x2e7a(%rip),%rax
mov    (%rax),%edx
mov    $0x80,%esi
call   1050 <fgets@plt>
movl   $0x0,-0x118(%rbp)
mov    -0x118(%rbp),%eax
mov    %eax,-0x120(%rbp)
lea    -0x90(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x120(%rbp),%eax
cmp    %ecx,%eax
jge    124d <main+0x11d>
movslq -0x118(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%eax
ff
cmp    $0x3c,%eax
jne    11d3 <main+0xa3>
movl   $0x1,-0x114(%rbp)
jmp    11ff <main+0xcf>
movslq -0x118(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%eax
ff
cmp    $0x3e,%eax
jne    11fa <main+0xca>
movl   $0x0,-0x114(%rbp)
jmp    1239 <main+0x109>
jmp    11ff <main+0xcf>
cmpl   $0x0,-0x114(%rbp)
jne    1234 <main+0x104>
movslq -0x118(%rbp),%rax
mov    -0x90(%rbp,%rax,1),%cl
mov    -0x11c(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x11c(%rbp)
cltq
mov    %cl,-0x110(%rbp,%rax,1)
jmp    1239 <main+0x109>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    1184 <main+0x54>
movslq -0x11c(%rbp),%rax
movb   $0x0,-0x110(%rbp,%rax,1)
lea    -0x110(%rbp),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x108,%rsp
mov    0x2ea4(%rip),%rax
mov    (%rax),%edx
lea    0x80(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x80,%esi
call   1050 <fgets@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    11bf <main+0x8f>
xor    %ebp,%ebp
lea    0x80(%rsp),%r15
xor    %r14d,%r14d
xor    %eax,%eax
jmp    1198 <main+0x68>
nopl   0x0(%rax,%rax,1)
xor    %ebx,%ebx
add    $0x1,%rbp
mov    %r15,%rdi
call   1040 <strlen@plt>
movslq %eax,%rcx
mov    %ebx,%eax
cmp    %rcx,%rbp
jge    11c2 <main+0x92>
movzbl 0x80(%rsp,%rbp,1),%ecx
cmp    $0x3e,%cl
je     1180 <main+0x50>
mov    $0x1,%ebx
cmp    $0x3c,%cl
je     1182 <main+0x52>
test   %eax,%eax
jne    1182 <main+0x52>
movslq %r14d,%rax
add    $0x1,%r14d
mov    %cl,(%rsp,%rax,1)
jmp    1180 <main+0x50>
xor    %r14d,%r14d
movslq %r14d,%rax
movb   $0x0,(%rsp,%rax,1)
mov    %rsp,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x108,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

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