#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);
int scanf(char *, int *);
int main() {
  int n, i, j = 1, a, x, y, total;
  while (scanf("%d", &n) == 1) {
    if (n == 0)
      break;
    x = 0, y = 0;
    for (i = 1; i <= n; i++) {
      scanf("%d", &a);
      if (a >= 1 && a <= 99) {
        x++;
      } else if (a == 0) {
        y++;
      }
    }
    total = x - y;
    printf("Case %d: %d\n", j, total);
    j++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x10(%rbp)
lea    0xec3(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmp    $0x1,%eax
jne    1205 <main+0xe5>
cmpl   $0x0,-0x8(%rbp)
jne    115e <main+0x3e>
jmp    1205 <main+0xe5>
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     11dc <main+0xbc>
lea    0xe7a(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x1,-0x14(%rbp)
jl     11b1 <main+0x91>
cmpl   $0x63,-0x14(%rbp)
jg     11b1 <main+0x91>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11c9 <main+0xa9>
cmpl   $0x0,-0x14(%rbp)
jne    11c4 <main+0xa4>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11c9 <main+0xa9>
jmp    11ce <main+0xae>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1173 <main+0x53>
mov    -0x18(%rbp),%eax
sub    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%esi
mov    -0x20(%rbp),%edx
lea    0xe11(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1136 <main+0x16>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xece(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
cmp    $0x1,%eax
jne    11de <main+0xbe>
mov    (%rsp),%eax
test   %eax,%eax
je     11de <main+0xbe>
mov    $0x1,%r12d
lea    0xea5(%rip),%rbx
lea    0x4(%rsp),%r13
test   %eax,%eax
jle    11b0 <main+0x90>
xor    %r15d,%r15d
xor    %r14d,%r14d
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
sub    $0x1,%eax
setb   %cl
cmp    $0x63,%eax
setae  %al
adc    $0x0,%ebp
and    %cl,%al
movzbl %al,%eax
add    %eax,%r14d
add    $0x1,%r15d
cmp    (%rsp),%r15d
jl     1170 <main+0x50>
sub    %r14d,%ebp
jmp    11b2 <main+0x92>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %ebp,%ebp
lea    0xe4a(%rip),%rdi
mov    %r12d,%esi
mov    %ebp,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
cmp    $0x1,%eax
jne    11de <main+0xbe>
add    $0x1,%r12d
mov    (%rsp),%eax
test   %eax,%eax
jne    1160 <main+0x40>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [13 x i8] c"Case %d: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %4
br label %9
9: ; preds = %42, %0
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %51
12: ; preds = %9
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %12
br label %51
16: ; preds = %12
store i32 0, i32* %6
store i32 0, i32* %7
store i32 1, i32* %3
br label %17
17: ; preds = %39, %16
%18 = load i32, i32* %3
%19 = load i32, i32* %2
%20 = icmp sle i32 %18, %19
br i1 %20, label %21, label %42
21: ; preds = %17
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %5)
%23 = load i32, i32* %5
%24 = icmp sge i32 %23, 1
br i1 %24, label %25, label %31
25: ; preds = %21
%26 = load i32, i32* %5
%27 = icmp sle i32 %26, 99
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = load i32, i32* %6
%30 = add nsw i32 %29, 1
store i32 %30, i32* %6
br label %38
31: ; preds = %25, %21
%32 = load i32, i32* %5
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %31
%35 = load i32, i32* %7
%36 = add nsw i32 %35, 1
store i32 %36, i32* %7
br label %37
37: ; preds = %34, %31
br label %38
38: ; preds = %37, %28
br label %39
39: ; preds = %38
%40 = load i32, i32* %3
%41 = add nsw i32 %40, 1
store i32 %41, i32* %3
br label %17
42: ; preds = %17
%43 = load i32, i32* %6
%44 = load i32, i32* %7
%45 = sub nsw i32 %43, %44
store i32 %45, i32* %8
%46 = load i32, i32* %4
%47 = load i32, i32* %8
%48 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %46, i32 %47)
%49 = load i32, i32* %4
%50 = add nsw i32 %49, 1
store i32 %50, i32* %4
br label %9
51: ; preds = %15, %9
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [13 x i8] c"Case %d: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = icmp ne i32 %5, 1
%7 = load i32, i32* %1
%8 = icmp eq i32 %7, 0
%9 = select i1 %6, i1 true, i1 %8
br i1 %9, label %43, label %10
10: ; preds = %0, %34
%11 = phi i32 [ %40, %34 ], [ %7, %0 ]
%12 = phi i32 [ %37, %34 ], [ 1, %0 ]
%13 = icmp slt i32 %11, 1
br i1 %13, label %34, label %14
14: ; preds = %10, %14
%15 = phi i32 [ %29, %14 ], [ 1, %10 ]
%16 = phi i32 [ %28, %14 ], [ 0, %10 ]
%17 = phi i32 [ %24, %14 ], [ 0, %10 ]
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%19 = load i32, i32* %2
%20 = add i32 %19, -1
%21 = icmp ult i32 %20, 99
%22 = icmp eq i32 %19, 0
%23 = zext i1 %21 to i32
%24 = add nuw nsw i32 %17, %23
%25 = xor i1 %21, true
%26 = select i1 %25, i1 %22, i1 false
%27 = zext i1 %26 to i32
%28 = add nuw nsw i32 %16, %27
%29 = add nuw nsw i32 %15, 1
%30 = load i32, i32* %1
%31 = icmp slt i32 %15, %30
br i1 %31, label %14, label %32
32: ; preds = %14
%33 = sub nsw i32 %24, %28
br label %34
34: ; preds = %32, %10
%35 = phi i32 [ %33, %32 ], [ 0, %10 ]
%36 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %12, i32 %35)
%37 = add nuw nsw i32 %12, 1
%38 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%39 = icmp ne i32 %38, 1
%40 = load i32, i32* %1
%41 = icmp eq i32 %40, 0
%42 = select i1 %39, i1 true, i1 %41
br i1 %42, label %43, label %10
43: ; preds = %34, %0
ret i32 0
}