Problem:


乗車券

新幹線に乗るためには、「乗車券」「特急券」の2枚の切符が必要です。経路の一部で新幹線を利用しない場合があるため、これらは別々の切符となっていますが、新幹線のみを利用する経路では、1枚で乗車券と特急券を兼ねる「乗車・特急券」が発行されることもあります。

自動改札機では、これらの切符を読み込んで、正しい切符が投入されたときだけゲートを開けなければなりません。「乗車券」と「特急券」それぞれ１枚、または、その両方、または、「乗車・特急券」が１枚投入されたかどうかを判定し、自動改札機の扉の開閉を判断するプログラムを作成して下さい。

入力

入力は以下の形式で与えられる。

b1 b2 b3

入力は１行からなり、１つの空白で区切られた３つの整数を含む。b1 は「乗車券」の投入状態、b2 は「特急券」の投入状態、b3 は「乗車・特急券」の投入状態を示す。投入状態は0または1で表され、0の場合は投入されていない状態、1の場合は投入されている状態を表す。ただし、想定される投入状態の組み合わせは以下の場合のみとする。

入力
投入状態
投入に対する扉の動作

1 0 0
「乗車券」のみ投入
Close

0 1 0
「特急券」のみ投入
Close

1 1 0
「乗車券」と「特急券」投入
Open

0 0 1
「乗車・特急券」投入
Open

0 0 0
投入なし
Close

出力

自動改札機の開閉を表すOpenまたはCloseを１行に出力する。

入力例1

0 0 1

出力例1

Open

入力例2

0 1 0

出力例2

Close



Sample input:
0 0 1


Sample output:
Open

Submission status: Wrong Answer

Solution code:
while 1:
	try:
		ticket = raw_input().split()

		if ticket[2] == "1":
			print "Open"
		elif ticket[0] == ticket[1] and ticket[0] == "0":
			print "Open"
		else:
			print "Close"
	except:
		exit()

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if a+b+c==1:
   print("Close")
elif a+b+c==2:
   print("Open")
else:
   print("Close")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if a==1:
   print("Close")
elif b==1:
  print('Close')
elif a+b==2 or c==1:
   print("Open")
else:
   print("Close")

Submission status: Accepted

Solution code:
input_str = raw_input()
if input_str == '1 1 0' or input_str == '0 0 1':
	print 'Open'
else:
	print 'Close'

Submission status: Accepted

Solution code:
b= input().split()

if b[2] == '1': print('Open')
elif b[0]=='1' and b[1]=='1':print('Open')
else : print('Close')

Submission status: Accepted

Solution code:
import sys
f = sys.stdin

def main(f):
    normal, express, both = map(int, f.readline().split())
    print('Open' if (normal and express) or both else 'Close')

main(f)

Submission status: Accepted

Solution code:
s = raw_input()
if s == "1 1 0" or s == "0 0 1":
  print "Open"
else:
  print "Close"

Submission status: Accepted

Solution code:
while 1:
	try:
		ticket = raw_input().split()

		if ticket[2] == "1":
			print "Open"
		elif ticket[0] == ticket[1] and ticket[0] == "1":
			print "Open"
		else:
			print "Close"
	except:
		exit()

Submission status: Accepted

Solution code:
t=raw_input().replace(" ","")
print "Open" if t=="001" or t=="110" else "Close"

Submission status: Accepted

Solution code:
t=raw_input()
print "Open" if t=="0 0 1" or t=="1 1 0" else "Close"

Submission status: Accepted

Solution code:
s = raw_input()
if s == "1 1 0" or s == "0 0 1":
 print "Open"
else:
 print "Close"

Submission status: Accepted

Solution code:
x=str.split(input())
if x[2]=="1":
	print("Open")
elif x[0:2]==["1","1"]:
	print("Open")
else:
	print("Close")

Submission status: Accepted

Solution code:
ticket = input().split()
if ticket[0] == ticket [1]:
    if ticket[0] == ticket[2]:
        print('Close')
    else:
        print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
print('Open' if a*b*(1-c) or (1-a)*(1-b)*c else 'Close')

Submission status: Accepted

Solution code:
l = list(map(int,input().split()))
print(["Close","Open"][l[0]*l[1]+l[2]])

Submission status: Accepted

Solution code:
b1, b2, b3 = map(int ,raw_input().split())

print "Open" if (b1 and b2 and (not b3)) or ((not b1) and (not b2) and b3) else "Close"

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())

if ((a==1 and b==0) or (a==0 and b==0)) and c==0:
	print("Close")
elif (a==1 and b==1 and c==0) or (a==0 and b==0 and c==1):
	print("Open")
else:
	print("Close")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
print(['Close','Open'][(a&b)^c])

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
print(['Close','Open'][a&b^c])

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
print(['Close','Open'][a&b|c])

Submission status: Accepted

Solution code:
b=list(map(int, input().split()))
print("Open" if b==[0,0,1]or b==[1,1,0] else "Close")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a + b == 2 or c == 1:
    print('Open')
else:
    print('Close')

Submission status: Accepted

Solution code:
x = input()
if x == "1 1 0" or x == "0 0 1":
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
# Aizu Problem 0257: Railway Ticket

import sys, math, os, bisect

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


status = tuple([int(_) for _ in input().split()])
print("Open" if status in [(1, 1, 0), (0, 0, 1)] else "Close")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==1 and b==1:
    print("Open")
elif c==1:
    print("Open")
else:print("Close")

Submission status: Accepted

Solution code:
print("Open" if input() in ("1 1 0", "0 0 1") else "Close")

Submission status: Accepted

Solution code:
# AOJ 0257: Railway Ticket
# Python3 2018.6.26 bal4u

b = int(''.join(input().split()), 2)
print("Open" if b == 1 or b == 6 else "Close")

Submission status: Accepted

Solution code:
dic = {"1 0 0":"Close", "0 1 0":"Close", "1 1 0":"Open",
       "0 0 1":"Open", "0 0 0":"Close"}
print(dic[input()])

Submission status: Accepted

Solution code:
X = raw_input()
Y = X.split(' ')
if Y[0] == "1" and Y[1] == "0" and Y[2] == "0":
  print "Close"
elif Y[0] == "0" and Y[1] == "1" and Y[2] == "0":
  print "Close"
elif Y[0] == "1" and Y[1] == "1" and Y[2] == "0":
  print "Open"
elif Y[0] == "0" and Y[1] == "0" and Y[2] == "1":
  print "Open"
else:
  print "Close"

Submission status: Accepted

Solution code:
res = {
	"1 0 0": "Close",
	"0 1 0": "Close",
	"1 1 0": "Open",
	"0 0 1": "Open",
	"0 0 0": "Close",
}
print res[raw_input()]

Submission status: Accepted

Solution code:
a = map(int, raw_input().split())
if a[2] or (a[0] and a[1]):
  print 'Open'
else:
  print 'Close'

Submission status: Accepted

Solution code:
m=[0,1,0,0,0,0,1,0]
(a, b, c) = map(int, raw_input().split())
print ["Close", "Open"][m[a * 4 + b * 2 + c]]

Submission status: Accepted

Solution code:
S=set([(0,0,1),(1,1,0)])
b=tuple(map(int,raw_input().split()))
if b in	S:
    print "Open"
else:
    print "Close"

Submission status: Accepted

Solution code:
def main():
    b1,b2,b3=map(int,raw_input().split(" "))
    print "Open" if b3==1 or (b1==1 and b2==1) else "Close"
if __name__=="__main__": main()

Submission status: Accepted

Solution code:
m = int(raw_input().replace(" ",""),2)
print "Open" if m==1 or m==6 else "Close"

Submission status: Accepted

Solution code:
b=int(''.join(input().split()),2)
print("Open" if b == 1 or b == 6 else "Close")

Submission status: Accepted

Solution code:

a,b,c=(int(x) for x in input().split())

if a==b!=c:
    print('Open')
    
else:
    print('Close')

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==1 and b2==1 and b3==0:
 print('Open')
elif ((b1==1 and b2==0) or (b1==0 and b2==1)) and b3==0:
 print('Close')
elif b1==0 and b2==0 and b3==1:
 print('Open')
else:
 print('Close')

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())

if b1==1 and b2==1 and b3==0 :
    print("Open")
elif b1==0 and b2==0 and b3==1 :
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
x,y,z=map(int,input().split())
if(x==1 and y==1 and z==0) or (x==0 and y==0 and z==1):print("Open")
else:print("Close")

Submission status: Accepted

Solution code:
a,b,c = input().split()
a = int(a)
b = int(b)
c = int(c)
if a==1 and b==1 and c==0:
    print("Open")
elif a==0 and b==0 and c==1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==1 and b==1 and c==0:
    print('Open')
else:
    if a==0 and b==0 and c==1:
        print('Open')
    else:
        print('Close')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())

if (a==1 and b==0) or (a==0 and b==1):
    print("Close")
elif a==1 and b==1:
    print("Open")
elif a==0 and b==0 and c==1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
a,b,c=(int(x) for x in input().split())

if a==b!=c:
    print('Open')

else:
    print('Close')

Submission status: Accepted

Solution code:
a , b , c = map (int , input() . split())
if( a == 1 and b == 0 and b == 0 ):
    print( "Close" )
elif( a == 0 and b == 1 and c == 0 ):
    print( "Close" )
elif( a == 1 and b == 1 and c == 0 ):
    print( "Open" )
elif( a == 0 and b == 0 and c == 1 ):
    print( "Open" )
elif( a == 0 and b == 0 and c == 0 ):
    print( "Close" )

Submission status: Accepted

Solution code:
b1,b2,b3 = map(int,input().split())
if b1==1:
    if b2==1:
        print("Open")
    else:
        print("Close")
if b1==0:
    if b2==0:
        if b3==1:
            print("Open")
        else:
            print("Close")
    if b2==1:
        print("Close")

Submission status: Accepted

Solution code:
x=input()

if x == '1 0 0':
    print('Close')
elif x == '0 1 0':
    print('Close')
elif x == '0 0 0':
    print('Close')
else:
    print('Open')

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==b2==1:
    if b3==0:
        print("Open")
elif b3 ==1:
    if b1==b2==0:
        print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())

if a == b != c:
    print('Open')
else:
    print('Close')

Submission status: Accepted

Solution code:
b1, b2, b3 = map(int, input().split())
if b1 == 1 and b2==1 :
    print("Open")
elif b3 == 1 :
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==1 and b==0 and c==0:
    print('Close')
elif a==0 and b==1 and c==0:
    print('Close')
elif a==1 and b==1 and c==0:
    print('Open')
elif a==0 and b==0 and c==1:
    print('Open')
elif a==0 and b==0 and c==0:
    print('Close')

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())

if b1==1:
    if b2==0:
        print("Close")
    else:
        print("Open")
else:
    if b2==0:
        if b3==0:
            print("Close")
        else:
            print("Open")
    else:
        print("Close")

Submission status: Accepted

Solution code:
b = input()

if b[0] == "1" and b[2] == "1" and b[4] == "0":
    print("Open")
elif b[0] == "0" and b[2] == "0" and b[4] == "1":
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b2==0 and b3==0 or b1==0 and b3==0:
    print('Close')
else:
    print('Open')

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())

if b1==1 and b2==0 and b3==0:
    print('Close')
if b1==0 and b2==1 and b3==0:
    print('Close')
if b1==1 and b2==1 and b3==0:
    print('Open')
if b1==0 and b2==0 and b3==1:
    print('Open')
if b1==b2==b3==0:
    print('Close')

Submission status: Accepted

Solution code:
b_1,b_2,b_3=map(int,input().split())
if b_1==1 and b_2==0 and b_3==0:
    print("Close")
elif b_1==0 and b_2==1 and b_3==0:
    print("Close")
elif b_1==1 and b_2==1 and b_3==0:
    print("Open")
elif b_1==0 and b_2==0 and b_3==1:
    print("Open")
elif b_1==0 and b_2==0 and b_3==0:
    print("Close")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==1:
    if b==0 and c==0:
        print("Close")
    elif b==1 and c==0:
        print("Open")
else:
    if b==1 and c==0:
        print("Close")
    elif b==0 and c==1:
        print("Open")
    else:
        print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if (b1,b2,b3) == (1,0,0):
    print("Close")
elif (b1,b2,b3) == (0,1,0):
    print("Close")
elif (b1,b2,b3) == (1,1,0):
    print("Open")
elif (b1,b2,b3) == (0,0,1):
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==1:
    if b2==1:
        print("Open")
    else:
        print("Close")
if b1==0:
    if b2==0:
        if b3==1:
            print("Open")
        else:
            print("Close")
    if b2==1:
        print("Close")

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if a == b == 1 or c == 1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==1 and b==1 and c==0:
    print('Open')
elif a==0 and b==0 and c==1:
    print('Open')
else:
    print('Close')

Submission status: Accepted

Solution code:
a,b,c=map(int, input().split())
if a == 0 and b == 0 and c == 0 :
    print("Close")
elif a == 1 and b == 0 and c == 0 :
    print("Close")
elif a == 0 and b == 1 and c == 0 :
    print("Close")
elif a == 1 and b == 1 and c == 0 :
    print("Open")
elif a == 0 and b == 0 and c == 1 :
    print("Open")
else :
    print("")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if (b1==1 and b2==0 and b3==0):
    print("Close")
elif (b1==0 and b2==1 and b3==0):
     print("Close")
elif(b1==0 and b2==0 and b3==0):
    print("Close")
elif(b1==1 and b2==1 and b3==0):
    print("Open")
elif(b1==0 and b2==0 and b3==1):
    print("Open")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==1 and b2==1 and b3==0:
    print("Open")
elif b1==0 and b2==0 and b3==1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())

if a==0 and b==0 and c==1:
    print('Open')
    
else:
    if a==1 and b==1 and c==0:
        print('Open')
        
    else:
        print('Close')

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if(a == 1 and b == 0 and c == 0):
    print("Close")
elif(a == 0 and b == 1 and c == 0):
    print("Close")
elif(a == 1 and b == 1 and c == 0):
    print("Open")
elif(a == 0 and b == 0 and c == 1):
    print("Open")
elif(a == 0 and b == 0 and c == 0):
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=(int(x) for x in input().split())

if (b1==0 or 1) and (b2==0 or 1) and (b3==0 or 1):
    if b1==1 and b2==0 and b3==0 or b1==0 and b2==1 and b3==0 or b1==0 and b2==0 and b3==0:
        print("Close")
    
    elif b1==1 and b2==1 and b3==0 or b1==0 and b2==0 and b3==1:
        print("Open")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())

if a==1 and b==0 and c==0:
    print('Close')
if a==0 and b==1 and c==0:
    print('Close')
if a==1 and b==1 and c==0:
    print('Open')
if a==0 and b==0 and c==1:
    print('Open')
if a==0 and b==0 and c==0:
    print('Close')

Submission status: Accepted

Solution code:
b = int(''.join(input().split()), 2)
print("Open" if b == 1 or b == 6 else "Close")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==b==c==0:
    print("Close")
elif a==1 and b==c==0:
    print("Close")
elif a==c==0 and b==1:
    print("Close")
elif a==b==1 and c==0:
    print("Open")
elif a==b==0 and c==1:
    print("Open")

Submission status: Accepted

Solution code:
b1, b2, b3 = map(int,input().split())
if b1 == 1 and b2 == 1:
    print('Open')
elif b3 == 1:
    print('Open')
else:
    print('Close')

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if a==1 :
    if b==1 :
        print("Open")
    else :
        print("Close")
else :
    if c==1 :
        print("Open")
    else :
        print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3 = map(int,input().split())
if b3 == 1 :
    print("Open")
elif b1 == b2 == 1 :
    print("Open")
else :
    print("Close")

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

b1,b2,b3 = map(int,input().split())
if (b1==1 and b2==0 and b3==0):
    print("Close")
elif(b1==0 and b2==1 and b3==0):
    print("Close")
elif(b1==1 and b2==1 and b3==0):
    print("Open")
elif(b1==0 and b2==0 and b3==1):
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1, b2, b3 = map(int, input().split())
if (b1==1 and b2==1) or b3==1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==1 and b2==1 and b3==0:
    print("Open")
elif b1==0 and b2==0 and b3==1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
a,b,c= map(int,input().split())
if a+b+c*2 > 1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3 = map(int,input().split())
if b1 == 1 and b2 == 0 and b3 == 0:
    print("Close")
elif b1 == 0 and b2 == 1 and b3 == 0:
    print("Close")
elif b1 == 0 and b2 == 0 and b3 == 0:
    print("Close")
elif b1 == 1 and b2 == 1 and b3 == 0: 
    print("Open")
elif b1 == 0 and b2 == 0 and b3 == 1:
    print("Open")
else:
    pass

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1>b2==b3:
    print("Close")
elif b2>b1==b3:
    print("Close")
elif b1==b2>b3:
    print("Open")
elif b1==b2<b3:
    print("Open")
elif b1==b2==b3:
    print("Close")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a == 1 and b == 1 and c == 0:
  print("Open")
elif a == 0 and b == 0 and c == 1:
  print("Open")
else:
  print("Close")

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# coding: utf-8
a,b,c = map(int,input().split())
if ((a==1 and a==b) or c==1):
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if (b1,b2,b3)==(1,1,0) or (b1,b2,b3)==(0,0,1):
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==1 and b2==1 and  b3==0:
    print("Open")
elif b1==0 and b2==0 and b3==1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3 = map(int,input().split())
if b1==1 and b2==1 and b3==0:
    print("Open")
elif b1==0 and b2==0 and b3==1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
s = input().split( )
a = int(s[0])
b = int(s[1])
c = int(s[2])
if a == 1:
  if b == 1:
    print("Open")
  else:
    print("Close")
else:
  if b == 1:
    print("Close")
  else:
    if c == 1:
      print("Open")
    else:
      print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==1 and b2==1 and b3==0:
    print('Open')
elif b1==0 and b2==0 and b3==1:
    print('Open')
else:
    print('Close')

Submission status: Accepted

Solution code:
x=input().split()
y=list(map(int,x))
z=list(map(int,y))
a=y[0]
b=y[1]
c=y[2]
if a==1 and b==1 and c==0:
    print("Open")
elif a==0 and b==0 and c==1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==b2==1:
    if b3==0:
        print("Open")
elif b3 == 1:
    if b1==b2==0:
        print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1 == 1 and b2 == 1 and b3 == 0 :
    print("Open")
elif b1 == 0 and b2 == 0 and b3 == 1 :
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if (a==1 and b==1 and c==0) or (a==0 and b==0 and c==1):
    print('Open')
else:
    print('Close')

Submission status: Accepted

Solution code:
b_1,b_2,b_3=map(int,input().split())
if (b_1==1):
    if (b_2==0):
        if (b_3==0):
            print("Close")
    else:
        if(b_2==1):
            if (b_3==0):
                print("Open")
elif (b_1==0):
    if (b_2==1):
        if (b_3==0):
            print("Close")
    elif (b_2==0):
        if (b_3==1):
            print("Open")
        elif (b_3==0):
            print("Close")
        else:
            print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1 == 1 and b2 == 0 and b3 == 0:
    print('Close')
elif b1 == 0 and b2 == 1 and b3 == 0:
    print('Close')
elif b1 == 1 and b2 == 1 and b3 == 0:
    print('Open')
elif b1 == 0 and b2 == 0 and b3 == 1:
    print('Open')
else:
    print('Close')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==1 and b==1 and c==0:
    print("Open")
elif a==0 and b==0 and c==1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==1 and b2==0 and b3==0:
    print("Close")
elif b1==0 and b2==1 and b3==0:
    print("Close")
elif b1==1 and b2==1 and b3==0:
    print("Open")
elif b1==0 and b2==0 and b3==1:
    print("Open")
elif b1==0 and b2==0 and b3==0:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==1 and b2==1:
    print("Open")
elif b3==1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if (a==1 and b==1 and c==0)or(a==0 and b==0 and c==1):
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1, b2, b3=map(int, input().split())
if b1==1 and b2==1 and b3==0:
  print("Open")
elif b1==0 and b2==0 and b3==1:
  print("Open")
else:
  print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3= map(int, input().split()) 

if b3==1 :
    print('Open')

elif b1==1 and b2==1:
    print('Open')
    
else :
    print('Close')

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b3 == 1:
    print("Open")
elif b1 == 1 and b2 == 1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
if c == 1:
    print("Open")
elif a == b == 1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3 = map(int,input().split())
if b1==1 and b2 == b3 == 0 :
    print('Close')
elif b1 == b3 == 0 and b2 == 1 :
    print('Close')
elif b1 == b2 == 1 and b3 == 0 :
    print('Open')
elif b1 == b2 == 0 and b3 == 1 :
    print('Open')
else :
    print('Close')

Submission status: Accepted

Solution code:
b1,b2,b3 = (int(x) for x in input().split())
if b1 == 1 and b2 == 0 and b3 == 0:
    print("Close")
elif b1 == 0 and b2 == 1 and b3 == 0:
    print("Close")
elif b1 == 1 and b2 == 1 and b3 == 0:
    print("Open")
elif b1 == 0 and b2 == 0 and b3 == 1:
    print("Open")
elif b1 == 0 and b2 == 0 and b3 == 0:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==1 and b2==0 and b3==0:
    print('Close')
elif b1==0 and b2==1 and b3==0:
    print('Close')
elif b1==1 and b2==1 and b3==0:
    print('Open')
elif b1==0 and b2==0 and b3==1:
    print('Open')
else:
    print('Close')

Submission status: Accepted

Solution code:
a=input()
if a=="1 0 0":
    print("Close")
elif a=="0 1 0":
    print("Close")
elif a=="1 1 0":
    print("Open")
elif a=="0 0 1":
    print("Open")
elif a=="0 0 0":
    print("Close")

Submission status: Accepted

Solution code:
b1, b2, b3 = map(int, input().split())

if b1==1 and b2==0 and b3==0:
    print("Close")
    
elif b1==0 and b2==1 and b3==0:
    print("Close")
    
elif b1==1 and b2==1 and b3==0:
    print("Open")
    
elif b1==0 and b2==0 and b3==1:
    print("Open")
    
elif b1==0 and b2==0 and b3==0:
    print("Close")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())

if a==1 and b==0 and c==0:
    print("Close")
    
elif a==0 and b==1 and c==0:
    print("Close")
    
elif a==1 and b==1 and c==0:
    print("Open") 
    
    
elif a==0 and b==0 and c==1:
    print("Open")
    
elif a==0 and b==0 and c==0:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==1 and b2==0 and b3==0:
    print('Close')
elif b1==0 and b2==1 and b3==0:
    print('Close')
elif b1==1 and b2==1 and b3==0:
    print('Open')
elif b1==0 and b2==0 and b3==1:
    print('Open')
elif b1==0 and b2==0 and b3==0:
    print('Close')

Submission status: Accepted

Solution code:
b1,b2,b3 = map(int,input().split())
if b1 == 1 and b2 == 0 and b3 == 0:
    print('Close')
else:
    pass
if b1 == 0 and b2 == 1 and b3 == 0:
    print('Close')
else:
    pass
if b1 == 1 and b2 == 1 and b3 == 0:
    print('Open')
else:
    pass
if b1 == 0 and b2 == 0 and b3 == 1:
    print('Open')
else:
    pass
if b1 == 0 and b2 == 0 and b3 == 0:
    print('Close')
else:
    pass

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==1 and b2==1 and b3==0:
    print("Open")
elif b1==0 and b2==0 and b3==1:
    print("Open")
else :
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())

if (b1,b2,b3)==(1,1,0) or (b1,b2,b3)==(0,0,1):
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3 = map(int,input().split())
if b1 == 1 and b2 == 0 and b3 == 0:
    print('Close')
elif b1 == 0 and b2 == 1 and b3 == 0:
    print('Close')
elif b1 == 1 and b2 == 1 and b3 == 0:
    print('Open')
elif b1 == 0 and b2 == 0 and b3 == 1:
    print('Open')
elif b1 == 0 and b2 == 0 and b3 == 0:
    print('Close')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
b1,b2,b3=map(int,input().split())

if b1==1 and b2==0 and b3==0:
    print('Close')
elif b1==0 and b2==1 and b3==0:
    print('Close')
elif b1==1 and b2==1 and b3==0:
    print('Open')
elif b1==0 and b2==0 and b3==1:
    print('Open')
else:
    print('Close')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==1 and b==1 and c==0:
    print("Open")
elif a==0 and b==0 and c==1: 
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1, b2, b3 = map(int,input().split())
if b3 == 0:
    if b1 == 0:
        print('Close')
    elif b2 == 0:
        print('Close')
    else:
        print('Open')
else:
    print('Open')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
b1,b2,b3=map(int,input().split())
if b1==1 and b2==1 and b3==0:
    print('Open')
elif b1==0 and b2==0 and b3==1:
    print('Open')
else:
    print('Close')

Submission status: Accepted

Solution code:
b1,b2,b3=(int(x) for x in input().split())
if (b1==0 or 1) and (b2==0 or 1) and (b3==0 or 1):
   if b1==1 and b2==0 and b3==0 or b1==0 and b2==1 and b3==0 or b1==0 and b2==0 and b3==0 :
      print("Close")
   elif b1==1 and b2==1 and b3==0 or b1==0 and b2==0 and b3==1:
      print("Open")
   else:
      pass
else:
   pass

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b3==1:
    print("Open")
else:
    if b1==1 and b2==1:
        print("Open")
    else:
        print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3= map(int, input().split())
if (b1==1 and b2==0 and b3==0):
    print("Close")
elif (b1==0 and b2==1 and b3==0):
    print("Close")
elif (b1==1 and b2==1 and b3==0):
    print("Open")
elif (b1==0 and b2==0 and b3==1):
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a==1 and c==0:
    if b==0:
        print("Close")
    else:
        print("Open")
elif a==0:
    if b==1 and c==0:
        print("Close")
    elif b==0 and c==1:
        print("Open")
    else:
        print("Close")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if c==1:
    print("Open")
elif a==1 and b==1:
    print("Open")
else :
    print("Close")

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())

if a == 1:
   if b == 1:
       print("Open")
   else:
       print("Close")
else:
    if b == 0:
        if c == 0:
            print("Close")
        else:
            print("Open")
    else:
        print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==1 and b2==0 and b3==0 :
    print('Close')
elif b1==0 and b2==1 and b3==0 :
    print('Close')
elif b1==1 and b2==1 and b3==0 :
    print('Open')
elif b1==0 and b2==0 and b3==1 :
    print('Open')
else:
    print('Close')

Submission status: Accepted

Solution code:
b_1,b_2,b_3=map(int,input().split())

if (b_1==0 and b_2==0 and b_3==1) or (b_1==1 and b_2==1 and b_3==0):
    print('Open')
else:
    print('Close')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())

if (a,b,c)==(1,1,0):
   print('Open')
elif (a,b,c)==(0,0,1):
    print('Open')
else:
    print('Close')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())

if a==1 and b==1:
    print("Open")

elif c==1:
    print("Open")

else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if b1==1:
    if b2==1:
        print("Open")
    else:
        print("Close")
elif b3==1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if (b1,b2,b3)==(1,1,0) or (b1,b2,b3)==(0,0,1):
  print("Open")
else:
  print("Close")

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if c == 1:
    print("Open")
else:
    if a == 1 & b == 1: 
        print("Open")
    else:
        print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())

if b1==1 and b2==0 and b3==0:
    print("Close")
elif b1==0 and b2==1 and b3==0:
    print("Close")
elif b1==1 and b2==1 and b3==0:
    print("Open")
elif b1==0 and b2==0 and b3==1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if (a==b==1 and c==0) or (a==b==0 and c==1):
   print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

b1, b2, b3 = map(int, input().split())
if b3 == 0:
   if b1 == 1 and b2 == 1:
      print("Open")
   else:
      print("Close")
else:
   print("Open")

Submission status: Accepted

Solution code:
b1, b2, b3 = (int(x) for x in input().split())

if b1==1 and b2==0 and b3== 0 :
    print("Close")
if b1==0 and b2==1 and b3== 0 :
    print("Close")
if b1==1 and b2==1 and b3== 0 :
    print("Open")
if b1==0 and b2==0 and b3== 1 :
    print("Open")
if b1==0 and b2==0 and b3== 0 :
    print("Close")

Submission status: Accepted

Solution code:
a,b,c =map(int,input().split())
if a==1 and b==0 and c==0:
    print("Close")
elif a==0 and b==1 and c==0:
    print("Close")
elif a==0 and b==0 and c==1:
    print("Open")
elif a==1 and b==1 and c==0:
    print("Open")
elif a==0 and b==0 and c==0:
    print("Close")
else:
    print("Again")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a+b==2 or c==1:
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1,b2,b3= map(int,input().split())
if (b1==1 and b2==1 and b3==0):
    print("Open")
elif (b1==0 and b2==0 and b3==1):
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
b1, b2, b3 = map(int,input().split())
if b1 == 1:
    if b2 == 1:
        print('Open')
    else:
        print('Close')
else:
    if b2 == 0:
        if b3 == 1:
            print('Open')
        else:
            print('Close')
    else:
        print('Close')

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if  b1==0:
    if b3==0:
        print("Close")
    elif b2==0:
        print("Open")
elif b1==1:
    if b2==1:
        print("Open")
    else:
        print("Close")

Submission status: Accepted

Solution code:
a,b,c=(int(x) for x in input().split())
if c==1:
    print("Open")
elif a==1 and b==1:
    print("Open")
else:
    print("Close")