#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 *, ...);
scalar_t__ scanf(char *, int *, int *);
int main() {
  int a, b;
  double i, sum, j;
  while (scanf("%d%d", &a, &b)) {
    if (a == 0 & b == 0)
      break;
    else {
      sum = (5950 - a * b) / (100 - b);
    }
    if (sum > 100.0)
      printf("God blesses me next time\n");
    else
      printf("%.0lf\n", sum);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
cmp    $0x0,%rax
je     11da <main+0xba>
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0x0,-0xc(%rbp)
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1176 <main+0x56>
jmp    11da <main+0xba>
mov    -0x8(%rbp),%ecx
imul   -0xc(%rbp),%ecx
mov    $0x173e,%eax
sub    %ecx,%eax
mov    $0x64,%ecx
sub    -0xc(%rbp),%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xe5b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11c2 <main+0xa2>
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11d5 <main+0xb5>
movsd  -0x20(%rbp),%xmm0
lea    0xe59(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    112f <main+0xf>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xebc(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <scanf@plt>
test   %rax,%rax
je     11d5 <main+0xa5>
lea    0xead(%rip),%r14
lea    0xe9a(%rip),%r15
lea    0xc(%rsp),%r12
lea    0x8(%rsp),%rbx
lea    0xe8e(%rip),%r13
jmp    11a4 <main+0x74>
nopl   0x0(%rax)
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1050 <scanf@plt>
test   %rax,%rax
je     11d5 <main+0xa5>
mov    0xc(%rsp),%edx
mov    0x8(%rsp),%ecx
mov    %ecx,%eax
or     %edx,%eax
je     11d5 <main+0xa5>
imul   %ecx,%edx
mov    $0x173e,%eax
sub    %edx,%eax
mov    $0x64,%esi
sub    %ecx,%esi
cltd
idiv   %esi
cmp    $0x65,%eax
jl     1180 <main+0x50>
mov    %r14,%rdi
call   1030 <puts@plt>
jmp    1191 <main+0x61>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [26 x i8] c"God blesses me next time\0A\00"
@.str.2 = [7 x i8] c"%.0lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = alloca double
%6 = alloca double
store i32 0, i32* %1
br label %7
7: ; preds = %37, %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 %38
10: ; preds = %7
%11 = load i32, i32* %2
%12 = icmp eq i32 %11, 0
%13 = zext i1 %12 to i32
%14 = load i32, i32* %3
%15 = icmp eq i32 %14, 0
%16 = zext i1 %15 to i32
%17 = and i32 %13, %16
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %10
br label %38
20: ; preds = %10
%21 = load i32, i32* %2
%22 = load i32, i32* %3
%23 = mul nsw i32 %21, %22
%24 = sub nsw i32 5950, %23
%25 = load i32, i32* %3
%26 = sub nsw i32 100, %25
%27 = sdiv i32 %24, %26
%28 = sitofp i32 %27 to double
store double %28, double* %5
br label %29
29: ; preds = %20
%30 = load double, double* %5
%31 = fcmp ogt double %30, 1.000000e+02
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
br label %37
34: ; preds = %29
%35 = load double, double* %5
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %35)
br label %37
37: ; preds = %34, %32
br label %7
38: ; preds = %19, %7
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.2 = [7 x i8] c"%.0lf\0A\00"
@str = [25 x i8] c"God blesses me next time\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%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 %26, label %7
7: ; preds = %0, %23
%8 = load i32, i32* %1
%9 = load i32, i32* %2
%10 = or i32 %9, %8
%11 = icmp eq i32 %10, 0
br i1 %11, label %26, label %12
12: ; preds = %7
%13 = mul nsw i32 %9, %8
%14 = sub nsw i32 5950, %13
%15 = sub nsw i32 100, %9
%16 = sdiv i32 %14, %15
%17 = icmp sgt i32 %16, 100
br i1 %17, label %18, label %20
18: ; preds = %12
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
br label %23
20: ; preds = %12
%21 = sitofp i32 %16 to double
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %21)
br label %23
23: ; preds = %20, %18
%24 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %7
26: ; preds = %23, %7, %0
ret i32 0
}