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

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int scanf(char *, char **);
int main() {
  char ch[10];
  int i, j, t = 0;
  while (scanf("%s", &ch) == 1) {
    if (ch[0] == 'H')
      printf("Case %d: Hajj-e-Akbar\n", ++t);
    else if (ch[0] == 'U')
      printf("Case %d: Hajj-e-Asghar\n", ++t);
    else
      break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x1c(%rbp)
lea    -0xe(%rbp),%rsi
lea    0xebf(%rip),%rdi
call   1040 <scanf@plt>
cmp    $0x1,%eax
jne    11ac <main+0x8c>
movsbl -0xe(%rbp),%eax
cmp    $0x48,%eax
jne    1176 <main+0x56>
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x1c(%rbp)
lea    0xe97(%rip),%rdi
call   1030 <printf@plt>
jmp    11a7 <main+0x87>
movsbl -0xe(%rbp),%eax
cmp    $0x55,%eax
jne    119d <main+0x7d>
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x1c(%rbp)
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
jmp    11a2 <main+0x82>
jmp    11ac <main+0x8c>
jmp    11a7 <main+0x87>
jmp    1136 <main+0x16>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xecc(%rip),%rdi
lea    0x6(%rsp),%rsi
call   1040 <scanf@plt>
cmp    $0x1,%eax
jne    11a2 <main+0x82>
xor    %ebx,%ebx
lea    0xece(%rip),%r14
lea    0xead(%rip),%r15
lea    0x6(%rsp),%r12
lea    0xea4(%rip),%r13
jmp    118d <main+0x6d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%ebx
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1040 <scanf@plt>
cmp    $0x1,%eax
jne    11a2 <main+0x82>
movzbl 0x6(%rsp),%eax
cmp    $0x55,%al
je     1170 <main+0x50>
cmp    $0x48,%al
jne    11a2 <main+0x82>
add    $0x1,%ebx
mov    %r13,%rdi
jmp    1176 <main+0x56>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [23 x i8] c"Case %d: Hajj-e-Akbar\0A\00"
@.str.2 = [24 x i8] c"Case %d: Hajj-e-Asghar\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %5
br label %6
6: ; preds = %30, %0
%7 = bitcast [10 x i8]* %2 to i8**
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %7)
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %31
10: ; preds = %6
%11 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 72
br i1 %14, label %15, label %19
15: ; preds = %10
%16 = load i32, i32* %5
%17 = add nsw i32 %16, 1
store i32 %17, i32* %5
%18 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %17)
br label %30
19: ; preds = %10
%20 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 85
br i1 %23, label %24, label %28
24: ; preds = %19
%25 = load i32, i32* %5
%26 = add nsw i32 %25, 1
store i32 %26, i32* %5
%27 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %26)
br label %29
28: ; preds = %19
br label %31
29: ; preds = %24
br label %30
30: ; preds = %29, %15
br label %6
31: ; preds = %28, %6
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [23 x i8] c"Case %d: Hajj-e-Akbar\0A\00"
@.str.2 = [24 x i8] c"Case %d: Hajj-e-Asghar\0A\00"
define i32 @main() {
%1 = alloca [10 x i8]
%2 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%3 = bitcast [10 x i8]* %1 to i8**
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %3)
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %19
6: ; preds = %0, %15
%7 = phi i32 [ %16, %15 ], [ 0, %0 ]
%8 = load i8, i8* %2
switch i8 %8, label %19 [
i8 72, label %9
i8 85, label %12
]
9: ; preds = %6
%10 = add nsw i32 %7, 1
%11 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %10)
br label %15
12: ; preds = %6
%13 = add nsw i32 %7, 1
%14 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %13)
br label %15
15: ; preds = %12, %9
%16 = phi i32 [ %10, %9 ], [ %13, %12 ]
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %3)
%18 = icmp eq i32 %17, 1
br i1 %18, label %6, label %19
19: ; preds = %15, %6, %0
ret i32 0
}