#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 /*<<< orphan*/ scanf(char *, int *, int *);
int main(int argc, char const *argv[]) {
  int a = 0, f, i;
  scanf("%d %d", &f, &i);
  if ((f >= 150) && (i >= 12)) {
    a++;
  }
  if ((f >= 140) && (i >= 14)) {
    a++;
  }
  if ((f >= 170) || (i >= 16)) {
    a++;
  }
  printf("%d\n", a);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    0xebc(%rip),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
call   1040 <scanf@plt>
cmpl   $0x96,-0x18(%rbp)
jl     1171 <main+0x51>
cmpl   $0xc,-0x1c(%rbp)
jl     1171 <main+0x51>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x8c,-0x18(%rbp)
jl     1191 <main+0x71>
cmpl   $0xe,-0x1c(%rbp)
jl     1191 <main+0x71>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0xaa,-0x18(%rbp)
jge    11a8 <main+0x88>
cmpl   $0x10,-0x1c(%rbp)
jl     11b1 <main+0x91>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xe4b(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    $0x96,%eax
setge  %sil
mov    (%rsp),%edx
cmp    $0xc,%edx
setge  %cl
and    %sil,%cl
movzbl %cl,%ecx
lea    0x1(%rcx),%edi
cmp    $0xe,%edx
cmovl  %ecx,%edi
cmp    $0x8c,%eax
cmovl  %ecx,%edi
cmp    $0xaa,%eax
setge  %al
cmp    $0x10,%edx
setge  %cl
or     %al,%cl
movzbl %cl,%esi
add    %edi,%esi
lea    0xe88(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4)
%8 = load i32, i32* %3
%9 = icmp sgt i32 %8, 149
%10 = load i32, i32* %4
%11 = icmp sgt i32 %10, 11
%12 = select i1 %9, i1 %11, i1 false
%13 = zext i1 %12 to i32
%14 = icmp sgt i32 %8, 139
%15 = icmp sgt i32 %10, 13
%16 = select i1 %14, i1 %15, i1 false
%17 = select i1 %12, i32 2, i32 1
%18 = select i1 %16, i32 %17, i32 %13
%19 = icmp sgt i32 %8, 169
%20 = icmp sgt i32 %10, 15
%21 = select i1 %19, i1 true, i1 %20
%22 = zext i1 %21 to i32
%23 = add nuw nsw i32 %18, %22
%24 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %23)
ret i32 0
}