#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, char *);
int /*<<< orphan*/ scanf(char *, char *);
scalar_t__ strcmp(char *, char *);
int main(void) {
  int caseId;
  char input[100];
  caseId = 1;
  while (1) {
    scanf("%s", input);
    if (input[0] == '*')
      break;
    if (strcmp(input, "Hajj") == 0)
      printf("Case %d: %s\n", caseId, "Hajj-e-Akbar");
    else
      printf("Case %d: %s\n", caseId, "Hajj-e-Asghar");
    caseId++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
lea    -0x70(%rbp),%rsi
lea    0xeaf(%rip),%rdi
call   1050 <scanf@plt>
movsbl -0x70(%rbp),%eax
cmp    $0x2a,%eax
jne    1168 <main+0x38>
jmp    11c1 <main+0x91>
lea    -0x70(%rbp),%rdi
lea    0xe90(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    119d <main+0x6d>
mov    -0x8(%rbp),%esi
lea    0xe7c(%rip),%rdi
lea    0xe82(%rip),%rdx
call   1030 <printf@plt>
jmp    11b3 <main+0x83>
mov    -0x8(%rbp),%esi
lea    0xe61(%rip),%rdi
lea    0xe74(%rip),%rdx
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1146 <main+0x16>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
lea    0xebb(%rip),%rdi
mov    %rsp,%rsi
call   1050 <scanf@plt>
cmpb   $0x2a,(%rsp)
je     11b7 <main+0x87>
mov    $0x1,%ebx
mov    %rsp,%r15
lea    0xeb3(%rip),%rbp
lea    0xeb9(%rip),%r14
lea    0xe98(%rip),%r12
lea    0xe89(%rip),%r13
nopw   0x0(%rax,%rax,1)
mov    %r15,%rdi
lea    0xe79(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
mov    %r14,%rdx
cmove  %rbp,%rdx
mov    %r12,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
add    $0x1,%ebx
mov    %r13,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
cmpb   $0x2a,(%rsp)
jne    1180 <main+0x50>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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