#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 F, I, n;
  n = 0;
  scanf("%d%d", &F, &I);
  if (F >= 150 && I >= 12) {
    n = n + 1;
  }
  if (F >= 140 && I >= 14) {
    n = n + 1;
  }
  if (F >= 170 || I >= 16) {
    n = n + 1;
  }
  printf("%d\n", n);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x10(%rbp)
lea    0xec3(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
cmpl   $0x96,-0x8(%rbp)
jl     116a <main+0x4a>
cmpl   $0xc,-0xc(%rbp)
jl     116a <main+0x4a>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x8c,-0x8(%rbp)
jl     118a <main+0x6a>
cmpl   $0xe,-0xc(%rbp)
jl     118a <main+0x6a>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0xaa,-0x8(%rbp)
jge    11a1 <main+0x81>
cmpl   $0x10,-0xc(%rbp)
jl     11aa <main+0x8a>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%esi
lea    0xe51(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%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    0xe87(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [4 x i8] c"%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 ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = icmp sgt i32 %6, 149
%8 = load i32, i32* %2
%9 = icmp sgt i32 %8, 11
%10 = select i1 %7, i1 %9, i1 false
%11 = zext i1 %10 to i32
%12 = icmp sgt i32 %6, 139
%13 = icmp sgt i32 %8, 13
%14 = select i1 %12, i1 %13, i1 false
%15 = select i1 %10, i32 2, i32 1
%16 = select i1 %14, i32 %15, i32 %11
%17 = icmp sgt i32 %6, 169
%18 = icmp sgt i32 %8, 15
%19 = select i1 %17, i1 true, i1 %18
%20 = zext i1 %19 to i32
%21 = add nuw nsw i32 %16, %20
%22 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %21)
ret i32 0
}