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: Accepted

Solution code:
a,b,c=map(int,input().split())
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:
l = input().split()
b1 = int(l[0])
b2 = int(l[1])
b3 = int(l[2])
if b1 == b2 and b1 != b3:
    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 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 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:
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:
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==1):
    print("Open")
elif (b3==1):
    print("Open")
else:
    print("Close")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b1,b2,b3=map(int,input().split())
if (b1+b2)+b3*2 == 2:
    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 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:
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:
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) or c==1:
     print("Open")
else:
     print("Close")

Submission status: Accepted

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

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')
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==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:
    if b2==1:
        print("Open")
    if b2==0:
        print("Close")
if b2==1:
    if b1==0:
        print("Close")
if b3==1:
        print("Open")
if 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:
    if b2==0:
        print("Close")
    else:
        print("Open")
if b1==0:
    if b2==1:
        print("Close")
    if b2==0:
        if b3==1:
            print("Open")
        if b3==0:
            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:
    if b2 == 1:
        print("Open")
    else:
        print("Close")
else:
    if b2 == 1:
        print("Close")
    else:
        if 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:
b_1,b_2,b_3 = map(int,input().split())
if b_1 == 1 and b_2 == 1 and b_3 == 0:
    print('Open')
else:
    if b_1 == 0 and b_2 == 0 and b_3==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 b1==0:
    if b2==1:
        print("Close")
    else:
        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==1 and b2==1 and b3==0) or (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 c==1:
    print("Open")
else:
    if a==1 and b==1:
        print("Open")
    else:
        print("Close")

Submission status: Accepted

Solution code:
n1,n2,n3 = input().split(" ")
if n1 == "1" and n2 == "1" or n3 == "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")
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 == 0 and b == 0 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")

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==0 and b2==0 and b3==0:
    print('Close')

Submission status: Accepted

Solution code:
a,b,c = input().split()
if int(a)==1 and int(b)==1 and int(c)==0 : print("Open")
elif int(a)==0 and int(b)==0 and int(c)==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==2:
    print("Open")
elif a+b==1:
    print("Close")
else:
    if 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=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:
B = input()

O = ["1 1 0", "0 0 1"]

if B in O :
    print("Open")
else :
    print("Close")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=input().split()
if a+b+c=='100' or a+b+c=='010' or a+b+c=='000':
    print('Close')
else:
    print('Open')

Submission status: Accepted

Solution code:
b1, b2, b3 = [int(i) for i in input().split()]
if b1 == b2 and b1 != b3:
    print('Open')
else:
    print("Close")

Submission status: Accepted

Solution code:
while True:
    try:
        a, b, c = [int(x) for x in input().split()]
    except:
        break
    
    f = 0
    
    if c > 0:
        f += 1
    elif a + b > 1:
        f += 1
        
    if f:
        print("Open")
    else:
        print("Close")

Submission status: Accepted

Solution code:
s=input()
if s == "1 0 0": print("Close")
if s == "0 1 0": print("Close")
if s == "1 1 0": print("Open")
if s == "0 0 1": print("Open")
if s == "0 0 0": 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:
ticket = list(map(int, input().split()))

if ticket == [1, 1, 0] or ticket == [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")
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 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(" "))
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")
  
else:
  print("Close")

Submission status: Accepted

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

L = input()
if L == "1 0 0":
    print("Close")
elif L == "0 1 0":
    print("Close")
elif L == "1 1 0":
    print("Open")
elif L == "0 0 1":
    print("Open")
elif L == "0 0 0":
    print("Close")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
st = input()
if (st[0] == '1' and st[2] == '1') or st[4] == '1':
    print("Open")
else:
    print("Close")

Submission status: Accepted

Solution code:
ticket = list(map(int, input().split()))

if ticket == [1, 1, 0] or ticket == [0, 0, 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:
print("Open" if input() in ("1 1 0","0 0 1") else "Close")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
if __name__ == "__main__":
    ticket = input()
    reult = "Close"

    if ticket in {"1 1 0", "0 0 1"}:
        result = "Open"
    
    print(result)

Submission status: Runtime Error

Solution code:
B = input()
bb = B.split(' ')
b1 = bb[0]
b2 = bb[1]
b3 = bb[2]
if b1 == '1' and b2 == '1':
    print("Open")
elif b3 == '1':
    print("Open")
else:
    print("Close")

Submission status: Runtime Error

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