count=1
while True:
seen=set()
n=int(input())
A=list(map(int,input().split()));flag=True
for i in range(len(A)):
ans=A[i]
for j in range(i+1,len(A)):
ans+=A[j]#;print(seen)
if ans in seen:
#print("It is not a B2-Sequence.")
flag=False
else:
seen.add ( A[i]+A[j] )
if flag==False: print("Case #"+"{}".format(count)+": It is not a B2-Sequence");break
if flag==True:print("Case #"+"{}".format(count)+": It is a B2-Sequence")
count+=1