#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, ...);
scalar_t__ scanf(char *, int *, int *);
int main() {
  int a = -99, b = -99, e = 1;
  while (scanf("%d%d", &a, &b)) {
    if (a == 0 && b == 0) {
      break;
    }
    double ae = (double)(a - b) / b;
    int i = ae;
    if ((ae - i) > 00) {
      i = i + 1;
    }
    if (ae > 26) {
      printf("Case %d: impossible\n", e);
    } else {
      printf("Case %d: %d\n", e, i);
    }
    e++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffff9d,-0x8(%rbp)
movl   $0xffffff9d,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
lea    0xebd(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
cmp    $0x0,%rax
je     120e <main+0xee>
cmpl   $0x0,-0x8(%rbp)
jne    117b <main+0x5b>
cmpl   $0x0,-0xc(%rbp)
jne    117b <main+0x5b>
jmp    120e <main+0xee>
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
cvtsi2sd %eax,%xmm0
cvtsi2sdl -0xc(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
cvttsd2si -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
movsd  -0x18(%rbp),%xmm0
cvtsi2sdl -0x1c(%rbp),%xmm1
subsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    11bf <main+0x9f>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xe34(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11ec <main+0xcc>
mov    -0x10(%rbp),%esi
lea    0xe2d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1200 <main+0xe0>
mov    -0x10(%rbp),%esi
mov    -0x1c(%rbp),%edx
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1144 <main+0x24>
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
movl   $0xffffff9d,0x4(%rsp)
ff
movl   $0xffffff9d,(%rsp)
lea    0xecf(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
test   %rax,%rax
je     11f9 <main+0xd9>
mov    $0x1,%ebx
lea    0xeb2(%rip),%r14
lea    0xea6(%rip),%r15
lea    0x4(%rsp),%r12
mov    %rsp,%r13
lea    0xeb1(%rip),%rbp
jmp    11c0 <main+0xa0>
nopl   0x0(%rax,%rax,1)
cvttsd2si %xmm0,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
xor    %edx,%edx
ucomisd 0xe6f(%rip),%xmm0
seta   %dl
add    %eax,%edx
mov    %rbp,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x1,%ebx
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
call   1040 <scanf@plt>
test   %rax,%rax
je     11f9 <main+0xd9>
mov    0x4(%rsp),%ecx
mov    (%rsp),%eax
mov    %ecx,%edx
or     %eax,%edx
je     11f9 <main+0xd9>
sub    %eax,%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
ucomisd 0xe17(%rip),%xmm0
jbe    1180 <main+0x60>
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    11aa <main+0x8a>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [21 x i8] c"Case %d: impossible\0A\00"
@.str.2 = [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 double
%6 = alloca i32
store i32 0, i32* %1
store i32 -99, i32* %2
store i32 -99, i32* %3
store i32 1, i32* %4
br label %7
7: ; preds = %45, %0
%8 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %48
10: ; preds = %7
%11 = load i32, i32* %2
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %10
%14 = load i32, i32* %3
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %13
br label %48
17: ; preds = %13, %10
%18 = load i32, i32* %2
%19 = load i32, i32* %3
%20 = sub nsw i32 %18, %19
%21 = sitofp i32 %20 to double
%22 = load i32, i32* %3
%23 = sitofp i32 %22 to double
%24 = fdiv double %21, %23
store double %24, double* %5
%25 = load double, double* %5
%26 = fptosi double %25 to i32
store i32 %26, i32* %6
%27 = load double, double* %5
%28 = load i32, i32* %6
%29 = sitofp i32 %28 to double
%30 = fsub double %27, %29
%31 = fcmp ogt double %30, 0.000000e+00
br i1 %31, label %32, label %35
32: ; preds = %17
%33 = load i32, i32* %6
%34 = add nsw i32 %33, 1
store i32 %34, i32* %6
br label %35
35: ; preds = %32, %17
%36 = load double, double* %5
%37 = fcmp ogt double %36, 2.600000e+01
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = load i32, i32* %4
%40 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %39)
br label %45
41: ; preds = %35
%42 = load i32, i32* %4
%43 = load i32, i32* %6
%44 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %42, i32 %43)
br label %45
45: ; preds = %41, %38
%46 = load i32, i32* %4
%47 = add nsw i32 %46, 1
store i32 %47, i32* %4
br label %7
48: ; preds = %16, %7
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [21 x i8] c"Case %d: impossible\0A\00"
@.str.2 = [13 x i8] c"Case %d: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
store i32 -99, i32* %1
%4 = bitcast i32* %2 to i8*
store i32 -99, i32* %2
%5 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = icmp eq i64 %5, 0
br i1 %6, label %34, label %7
7: ; preds = %0, %30
%8 = phi i32 [ %31, %30 ], [ 1, %0 ]
%9 = load i32, i32* %1
%10 = icmp eq i32 %9, 0
%11 = load i32, i32* %2
%12 = icmp eq i32 %11, 0
%13 = select i1 %10, i1 %12, i1 false
br i1 %13, label %34, label %14
14: ; preds = %7
%15 = sub nsw i32 %9, %11
%16 = sitofp i32 %15 to double
%17 = sitofp i32 %11 to double
%18 = fdiv double %16, %17
%19 = fptosi double %18 to i32
%20 = fcmp ogt double %18, 2.600000e+01
br i1 %20, label %21, label %23
21: ; preds = %14
%22 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %8)
br label %30
23: ; preds = %14
%24 = sitofp i32 %19 to double
%25 = fsub double %18, %24
%26 = fcmp ogt double %25, 0.000000e+00
%27 = zext i1 %26 to i32
%28 = add nsw i32 %27, %19
%29 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %8, i32 %28)
br label %30
30: ; preds = %23, %21
%31 = add nuw nsw i32 %8, 1
%32 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %7
34: ; preds = %30, %7, %0
ret i32 0
}