#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 /*<<< orphan*/ scanf(char *, int *, int *, int *);
int main(void) {
  int b1, b2, b3;
  scanf("%d %d %d", &b1, &b2, &b3);
  if (b3 == 1 || (b1 == 1 && b2 == 1)) {
    printf("Open\n");
  } else {
    printf("Close\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
cmpl   $0x1,-0x10(%rbp)
je     1165 <main+0x45>
cmpl   $0x1,-0x8(%rbp)
jne    1176 <main+0x56>
cmpl   $0x1,-0xc(%rbp)
jne    1176 <main+0x56>
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
jmp    1182 <main+0x62>
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
cmpl   $0x1,0xc(%rsp)
jne    114f <main+0x2f>
lea    0xec2(%rip),%rdi
jmp    1171 <main+0x51>
mov    0x14(%rsp),%eax
xor    $0x1,%eax
mov    0x10(%rsp),%ecx
xor    $0x1,%ecx
lea    0xeab(%rip),%rdx
lea    0xe9e(%rip),%rdi
or     %eax,%ecx
cmove  %rdx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [6 x i8] c"Open\0A\00"
@.str.2 = [7 x i8] c"Close\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%6 = load i32, i32* %4
%7 = icmp eq i32 %6, 1
br i1 %7, label %14, label %8
8: ; preds = %0
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i32, i32* %3
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %16
14: ; preds = %11, %0
%15 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %18
16: ; preds = %11, %8
%17 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %18
18: ; preds = %16, %14
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d %d %d\00"
@str = [6 x i8] c"Close\00"
@str.3 = [5 x i8] c"Open\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%8 = load i32, i32* %3
%9 = icmp eq i32 %8, 1
br i1 %9, label %17, label %10
10: ; preds = %0
%11 = load i32, i32* %1
%12 = icmp eq i32 %11, 1
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, 1
%15 = select i1 %12, i1 %14, i1 false
%16 = select i1 %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0)
br label %17
17: ; preds = %10, %0
%18 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.3, i64 0, i64 0), %0 ], [ %16, %10 ]
%19 = call i32 @puts(i8* dereferenceable(1) %18)
ret i32 0
}