buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
a=[] while True: n=input() if n==0: break a.append(n) for i in range(len(a)): print(f'Case {i+1}: {a[i]}')
a=[] while True: n=input() if int(n)==0: break a.append(n) for i in range(len(a)): print(f'Case {i+1}: {a[i]}')
[["+", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]]
5
53
i=1 while True: s=int(input) if s==0:break print(f'Case {i}: {s}')
i=1 while True: s=int(input()) if s==0:break print(f'Case {i}: {s}') i+=1
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612]]
5
31
i=1 while 1: a=input() if a==0:break print(f'Case {i}: {a}') i+=1
i=1 while 1: a=input() if int(a)==0:break print(f'Case {i}: {a}') i+=1
[["+", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]]
5
33
for i,a in enumerate(iter(input,'0')): print(f'Case {i}: {a}')
for i,a in enumerate(iter(input,'0')):print(f'Case {i+1}: {a}')
[["+", 3, 4, 0, 557, 0, 284, 205, 657, 17, 72], ["+", 3, 4, 0, 557, 0, 284, 205, 657, 12, 612]]
5
30
for i,a in enumerate(iter(input,'0')): print(f'Case {i}: {a}')
for i,a in enumerate(iter(input,'0'),1):print(f'Case {i}: {a}')
[["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]]
5
30
import sys i=1 for a in sys.stdin: a=a.strip() if a==0:break print(f'Case {i}: {a}') i+=1
import sys i=1 for a in sys.stdin: a=a.strip() if'0'==a:break print(f'Case {i}: {a}') i+=1
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]]
5
41
import sys i=1 for a in sys.stdin: a=a.strip() if a==0:break print(f'Case {i}: {a}') i+=1
import sys i=1 for a in sys.stdin: a=a.strip() if a=='0':break print(f'Case {i}: {a}');i+=1
[["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655], ["+", 36, 36, 0, 656, 0, 7, 8, 196, 0, 35]]
5
41
i=int(eval(input())) l=[] while i!=0: l.append(i) i=int(eval(input())) for d in range(len(l)): print("Case "+str(d+1)+":"+str(l[d]))
i=int(eval(input())) l=[] while i!=0: l.append(i) i=int(eval(input())) for d in range(len(l)): print("Case "+str(d+1)+": "+str(l[d]))
[["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]]
5
73
i=1 while True: x=int(input()) if(x==0): break print(f"Case {i}: {x}")
i=1 while True: x=int(input()) if(x==0): break print(f"Case {i}: {x}") i+=1
[["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612]]
5
35
i=1 while True: x=int(input()) if(x==0): break i=i+1 print(f"Case {i}: {x}")
i=0 while True: x=int(input()) if(x==0): break i=i+1 print(f"Case {i}: {x}")
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]]
5
40
i = 1 while True: a = int(input()) if(a == 0): break else : print(f'Case{i}: {a}') i += 1
i = 1 while True: a = int(input()) if(a == 0): break else : print(f'Case {i}: {a}') i += 1
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
40
i = 1 while True: x = int(input()) if(x == 0): break print(f'Case{i}: {x}') i += 1
i = 1 while True: x = int(input()) if(x == 0): break print(f'Case {i}: {x}') i += 1
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
38
for i in range(): inpu = int(input()) if inpu == 0: break else: print("Case %d: %d" % (i, inpu))
for i in range(1, 10001): inpu = int(input()) if inpu == 0: break else: print("Case %d: %d" % (i, inpu))
[["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]]
5
35
counter = 1 while true: x = int(input()) if x == 0 : break else : print("Case {}: {}".format(counter,x)) counter = counter + 1
counter = 1 while True: x = int(input()) if x == 0 : break else : print("Case {}: {}".format(counter,x)) counter = counter + 1
[["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 146]]
5
40
num_case = 0 while True: num_case += 1 x = int(input()) if x == 0: break print("Case " + str(num_case) + ":" + str(x))
num_case = 0 while True: num_case += 1 x = int(input()) if x == 0: break else: print("Case " + str(num_case) + ": " + str(x))
[["+", 0, 52, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 52, 8, 196, 0, 57, 75, 76, 0, 102], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]]
5
43
array = [] x = input() while x != 0: array.append(x) x = input() for i, x in enumerate(array): print("Case %d: %d" % (i + 1, x))
array = [] x = input() while x != "0": array.append(x) x = input() for i, x in enumerate(array): print("Case %d: %s" % (i + 1, x))
[["+", 0, 656, 0, 52, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 52, 15, 666, 0, 557, 0, 655], ["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
49
count=0 while True: count=count+1 a=input() b=len(a) if b==0: break else: print("Case "+str(count)+": "+str(a))
count=0 while True: count=count+1 a=input() if int(a)==0: break else: print("Case "+str(count)+": "+str(a))
[["-", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["-", 0, 656, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22]]
5
50
i=0 while True: Indata = int(input()) if Indata == 0: break else: i=i+1 print("Case" +str(i) + ": " + str(Indata))
i=0 while True: Indata = int(input()) if Indata == 0: break else: i=i+1 print("Case " +str(i) + ": " + str(Indata))
[["-", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6]]
5
47
s=1 while True: i=input() if i=='0': break print('case '+str(s)+':', i) s+=1
s=1 while True: i=input() if i=='0': break print('Case '+str(s)+':', i) s+=1
[["-", 3, 4, 0, 657, 31, 657, 31, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 31, 557, 0, 6]]
5
39
i = 1 while true: x = input() if x == 0: break print ("Case " + str(i) + ": " + str(x)) i += 1
i = 1 while True: x = input() if x == "0": break print ("Case " + str(i) + ": " + str(x)) i += 1
[["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 146], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
40
a=[] while True: x = int(input()) if x == 0: break a.append(x) j=1 for i in a: print("case %d: %d" % (j,i)) j=j+1
a=[] while True: x = int(input()) if x == 0: break a.append(x) j=1 for i in a: print("Case %d: %d" % (j,i)) j=j+1
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
52
i=1 while True: x = int(input()) if x==0: break print('Case ',i,':',x,sep='') i=i+1;
i=1 while True: x = int(input()) if x==0: break print('Case ',i,': ',x,sep='') i=i+1;
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
45
i = 0 while True : x = int(input()) if(x == 0) : break else : i += 1 print("Case ", i, ":", x, sep = "")
i = 0 while True : x = int(input()) if(x == 0) : break else : i += 1 print("Case ", i, ": ", x, sep = "")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
46
i = 0 while True : x = int(input()) if(x == 0) : break else : i += 1 print("Case ", i, ":", x, sep = "")
i = 0 while True : x = int(input()) if x == 0 : break else : i += 1 print("Case ", i, ": ", x, sep = "")
[["-", 0, 52, 8, 196, 0, 57, 15, 23, 0, 24], ["-", 0, 52, 8, 196, 0, 57, 15, 23, 0, 25], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
46
def testcase(num, x): print("Case {}: {}".format(str(num),str(x))) cnt=0 while True: num = int(input()) cnt+=1 if num !=0: testcase(cnt,num) elif num == 0: testcase(cnt,num) break
def testcase(num, x): print("Case {}: {}".format(str(num),str(x))) cnt=0 while True: num = int(input()) cnt+=1 if num !=0: testcase(cnt,num) elif num == 0: break
[["-", 75, 665, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
67
numbers = [] while True: x=int(input()) if x==0: break numbers.append(x) for i in range(len(numbers)): print("Case",i+1,": ",numbers[i],sep="")
numbers = [] while True: x=int(input()) if x==0: break numbers.append(x) for i in range(len(numbers)): print("Case ",i+1,": ",numbers[i],sep="")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
62
c = 1 while True: x = int(input()) if x == 0: return print("Case {}: {}".format(c, x)) c += 1
c = 1 while True: x = int(input()) if x == 0: break print("Case {}: {}".format(c, x)) c += 1
[["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
5
36
i = 0 while True: num = int(input()) if num == 0: break print('Case {}: {}'.format(i, num)) i = i+1
i = 1 while True: num = int(input()) if num == 0: break print('Case {}: {}'.format(i, num)) i+=1
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107]]
5
38
counter = 0 while True: n = int(input()) counter += 1 if(n == 0):break print('Caes {}: {}'.format(counter,n))
counter = 0 while True: n = int(eval(input())) counter += 1 if(n == 0):break print(('Case {}: {}'.format(counter,n)))
[["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["+", 0, 1, 0, 652, 3, 4, 0, 23, 0, 24], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 0, 23, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 23, 0, 652, 3, 4, 0, 25]]
5
38
i = 1 while true: x = int(input()) if x == 0: break print('case %d: %d' % (i,x)) i +=1
i = 1 while True: x = int(input()) if x == 0: break print('Case %d: %d' % (i,x)) i +=1
[["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 146], ["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
35
i = 1 while True: a = input() if a ==0: break else: print('Case '+str(i)+': '+a) i +=1
i = 1 while True: a = input() if a =='0': break else: print('Case '+str(i)+': '+a) i +=1
[["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
39
list = [] while True: a = int(input()) if(a == 0): break else: list.append(a) for i in range(len(list)): print("Case %d: %d" %(i,list[i]))
list = [] while True: a = int(input()) if(a == 0): break else: list.append(a) for i in range(len(list)): print("Case %d: %d" %(i+1,list[i]))
[["+", 3, 4, 0, 657, 12, 660, 0, 657, 17, 72], ["+", 3, 4, 0, 657, 12, 660, 0, 657, 12, 612]]
5
57
c = 1 while True: x = int(input().split()) if x == 0: break print("Case ", c, ": ", x, sep="") c += 1 # c = c + 1 の略記法
c = 1 while True: x = int(input()) if x == 0: break print("Case ", c, ": ", x, sep="") c += 1 # c = c + 1 の略記法
[["-", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
47
i=0 while True: i+=1 x=input() if x=='0': break print('Case %d: %d' % (i,x))
i=0 while True: i+=1 x=input() if x=='0': break print('Case %d: %s' % (i,x))
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
34
i = 0 while True: i+=1 v = input() if not v: break print(('Case {}: {}'.format(i,v)))
i = 0 while True: i+=1 v = input() if v == '0': break print(('Case {}: {}'.format(i,v)))
[["-", 0, 52, 8, 196, 0, 57, 15, 681, 0, 372], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 6], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
34
c = 0 while True: x == int(input()) if x == 0: break; c += 1 print('Case', str(c) + ':', x)
c = 0 while True: x = int(input()) if x == 0: break; c += 1 print('Case', str(c) + ':', x)
[["-", 0, 52, 8, 196, 0, 1, 0, 666, 667, 60], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32]]
5
41
c = 0 while True: x = int(input()) if(x == 0): break; print('Case {0}: {1}'.format(c,x)) c += 1
c = 1 while True: x = int(input()) if(x == 0): break; print('Case {0}: {1}'.format(c,x)) c += 1
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]]
5
39
i=1 while True: a=eval(input()) if a==0: break else: print("Case","i"+":", a) i=i+1
i=1 while True: a=eval(input()) if a==0: break else: print("Case",str(i)+":", a) i=int(i)+1
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 655], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 25], ["+", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["+", 0, 662, 12, 657, 31, 652, 3, 4, 0, 24], ["...
5
43
import sys c = 0 while True: x = int(sys.stdin.readline()) if x == 0: break c+=1 print ('Case'+ str(c)+':', x)
import sys c = 0 while True: x = int(sys.stdin.readline()) if x == 0: break c+=1 print ('Case ' + str(c)+':', x)
[["-", 3, 4, 0, 657, 31, 657, 31, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 31, 557, 0, 6]]
5
46
stack = [] a=1 while not a==0: a=eval(input()) stack.append(a) stack.remove(0) for i, a in enumerate(stack): print("Caes%s:%s" % (i+1,a))
stack = [] a=1 while not a==0: a=eval(input()) stack.append(a) stack.remove(0) for i, a in enumerate(stack): print("Case %s: %s" % (i+1,a))
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
57
#coding:utf-8 import sys i=0 while True: num=sys.stdin.readline() i+=1 if int(num) == 0: break else: print( "Case {}: {}".format( i, num ) )
import sys i=0 while True: num=int( sys.stdin.readline() ) i+=1 if num == 0: break else: print( "Case {}: {}".format( i, num ) )
[["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]]
5
45
import sys for i, x in enumerate(map(int, sys.stdin)): if not x: break print("Case {0}: {1}".format(i, x))
import sys for i, x in enumerate(map(int, sys.stdin)): if not x: break print("Case {0}: {1}".format(i + 1, x))
[["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]]
5
37
i = 0 n = 1 while n != 0: n = int(input()) if n == 0: continue print("Case %d: %d" %(i, n)) i += 1
i = 1 n = 1 while n != 0: n = int(input()) if n == 0: continue print("Case %d: %d" %(i, n)) i += 1
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]]
5
40
cases = [] n = 1 while n != 0: n = int(input()) if n == 0: continue cases.append(n) for i in range(len(cases)): print("Case %d: %d" %(i, cases[i]))
cases = [] n = 1 while n != 0: n = int(input()) if n == 0: continue cases.append(n) for i in range(len(cases)): print("Case %d: %d" %(i + 1, cases[i]))
[["+", 3, 4, 0, 657, 12, 660, 0, 657, 17, 72], ["+", 3, 4, 0, 657, 12, 660, 0, 657, 12, 612]]
5
58
i = 1 while True : x = int(input()) if x == 0 : break else : print("Case%d:%d" % (i, x)) i = i + 1
i = 1 while True : x = int(input()) if x == 0 : break else : print("Case %d: %d" % (i, x)) i = i + 1
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
39
count = 0 while True: count += 1 num = int(input()) if num == 0: break print("Case" + str(count) + ":", num)
count = 0 while True: count += 1 num = int(input()) if num == 0: break print("Case", str(count) + ":", num)
[["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21]]
5
40
l = [] while True: i = str(input()) if i == '0': break else: l.append(i) t = 0 for i in l: print('Case '+str(t)+': '+i)
l = [] while True: i = str(input()) if i == '0': break else: l.append(i) t = 0 for i in l: t += 1 print('Case '+str(t)+': '+i)
[["+", 0, 7, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 7, 8, 196, 0, 1, 0, 677, 12, 612]]
5
56
i = 1 while(1): x = input() if x == 0: break print("Case %d: %d" %(i,x)) i += 1
i = 1 while(1): x = int(input()) if x == 0: break print("Case %d: %d" %(i,x)) i += 1
[["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
34
i = 0 while True: x = input() i += 1 if x == 0: break print("Case %s: %s" % (i,x))
i = 0 while True: x = input() i += 1 if x == '0': break print("Case %s: %s" % (i,x))
[["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
32
sum = 0 while True: x = input() sum = sum + 1 if x == '0': break print('Case %s: %s' %(i, x))
sum = 0 while True: x = input() sum = sum + 1 if x == '0': break print('Case %s: %s' %(sum, x))
[["-", 0, 652, 3, 4, 0, 657, 12, 660, 0, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 660, 0, 22]]
5
36
i = 0 while True: i += 1 x = eval(input()) if x == 0: k = 1 else: print("Case %d: %d" %(i, x))
i = 0 while True: i += 1 x = eval(input()) if x == 0: break else: print("Case %d: %d" %(i, x))
[["-", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 12, 612], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
5
39
i = 0 while True: i += 1 x = eval(input()) if x == 0: break print("case %d: %d" %(i, x))
i = 0 while True: i += 1 x = eval(input()) if x == 0: break print("Case %d: %d" %(i, x))
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
35
i = 0 while True: x = input() i += 1 if x == '0': break print('Case %d: %s'%(i, x))
i = 0 while True: x = input() i += 1 if x == '0': break print('Case %s: %s' %(i, x))
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
34
i=1 x = input() while(x != 0): print("Case {0}: {1}".format(i, x)) i += 1 x = input()
i=1 x = input() while(x != "0"): print("Case {0}: {1}".format(i, x)) i += 1 x = input()
[["+", 0, 52, 15, 23, 0, 666, 0, 557, 0, 654], ["+", 0, 52, 15, 23, 0, 666, 0, 557, 0, 655]]
5
36
n = -100 i = 1 while n != 0: n = int(input()) if n != 0: print('case %d: %d' %(i,n)) i = i + 1
n = -100 i = 1 while n != 0: n = int(input()) if n != 0: print('Case %d: %d' %(i,n)) i = i + 1
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
42
i = 1 while True: x = eval(input()) if x == 0: break else: print('case %d: %d' % (i, x)) i += 1
i = 1 while True: x = eval(input()) if x == 0: break else: print('Case %d: %d' % (i, x)) i += 1
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
37
i=-1 while True: i=i+1 k=int(input()) if k==0: break print(("Case "+str(i)+": "+str(k)))
i=0 while True: i=i+1 k=int(input()) if k==0: break print(("Case "+str(i)+": "+str(k)))
[["-", 0, 656, 0, 1, 0, 662, 12, 664, 17, 33], ["-", 0, 656, 0, 1, 0, 662, 12, 664, 28, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]]
5
48
import sys c = 0 for line in sys.stdin: if line == '0': break c+=1 print('Case %s: %s' %(c,line), end=' ')
import sys c = 0 for line in sys.stdin: if line[0] == '0': break c+=1 print('Case %s: %s' %(c,line), end=' ')
[["+", 8, 196, 0, 57, 15, 666, 0, 206, 0, 70], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 206, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 0, 73]]
5
41
n = [] i = 0 while True: n.append(int(eval(input()))) if n[i] == 0: break i += 1 for j in range(i): print(("Case " + str(i) + " : " + str(n[j])))
n = [] i = 0 while True: n.append(int(eval(input()))) if n[i] == 0: break i += 1 for j in range(i): print(("Case " + str(j+1) + ": " + str(n[j])))
[["-", 31, 657, 31, 657, 12, 652, 3, 4, 0, 22], ["+", 31, 657, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 31, 657, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 31, 657, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 23, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 0, 23, 0, 657, 31, 657, 12, 557, 0, 6]]
5
69
i = 0 while True: x = int(input()) i = i + 1 if x == 0: break print('Case %s: %s' %(sum, x))
i = 0 while True: x = int(input()) i = i + 1 if x == 0: break print('Case %s: %s' %(i, x))
[["-", 0, 652, 3, 4, 0, 657, 12, 660, 0, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 660, 0, 22]]
5
37
i = 0 while True: i+=1 x = input() if x == '0': break print(('Case {}: {}'.format(i,v)))
i = 0 while True: i+=1 x = input() if x == '0': break print(('Case {}: {}'.format(i,x)))
[["-", 3, 4, 0, 23, 0, 652, 3, 4, 0, 22], ["+", 3, 4, 0, 23, 0, 652, 3, 4, 0, 22]]
5
37
n = eval(input()) i = 1 while n != 0: print("Case %d: %d" % (i, n)) n = eval(input())
n = eval(input()) i = 1 while n != 0: print("Case %d: %d" % (i, n)) n = eval(input()) i += 1;
[["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612], ["+", 36, 36, 0, 656, 0, 52, 8, 196, 0, 35]]
5
36
a=1 while True: x=int(input()) if x==0: break print("Case %d: %d" % (a,x)) cnt+=1;
a=1 while True: x=int(input()) if x==0: break print("Case %d: %d" % (a,x)) a+=1;
[["-", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22]]
5
36
while True: x = input() i = 1 if x == '0': break print("Case %s: %s"%(i,x)) i += 1
i = 1 while True: x = input() if x == '0': break print("Case %s: %s"%(i,x)) i += 1
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 0, 52, 8, 196, 0, 1, 0, 662, 12, 612]]
5
34
import fileinput for i, line in enumerate(fileinput.input()): x = line.strip() if x: print("Case %d: %s" % (i + 1, x)) else: break
import fileinput for i, line in enumerate(fileinput.input()): x = line.strip() if x != '0': print("Case %d: %s" % (i + 1, x)) else: break
[["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 6], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
43
i = 0 while True: i += 1 num = input() if len(num) == 0: break print("Case %d: %s" % (i,num))
i = 0 while True: i += 1 num = input() if num == "0": break print("Case %d: %s" % (i,num))
[["-", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
35
a = 1 while True: i = int(input()) if (i == 0): break print("Case %d:%d" % (a, i)) a += 1
a = 1 while True: i = int(input()) if (i == 0): break print("Case %d: %d" % (a, i)) a += 1
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
37
i = 1 while True: x = int(input().strip()) if x == 0: break else: print ("""Case {}: {}""").format(i,x) i += 1
i = 1 while True: x = int(input().strip()) if x == 0: break else: print ("Case {}: {}".format(i,x)) i += 1
[["-", 63, 319, 500, 652, 3, 4, 0, 557, 0, 654], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 654], ["-", 63, 319, 500, 652, 3, 4, 0, 557, 0, 655], ["-", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 655], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
42
# -*- coding: utf-8 -*- import sys i = 0 for line in sys.stdin: if line[0] == "0": break i += 1 print("Case %s: %s" %(i, line))
# -*- coding: utf-8 -*- import sys i = 0 for line in sys.stdin: if line[0] == "0": break i += 1 print("Case %s: %s" %(i, line), end=' ')
[["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]]
5
39
class PrintTestCases: def __init__(self): self.i = 0 def output(self, x): print("Case %d: %d" % (self.i, x)) self.i += 1 if __name__ == "__main__": ptc = PrintTestCases(); while True: x = int(input()) if x == 0: break ptc.output(x)
class PrintTestCases: def __init__(self): self.i = 1 def output(self, x): print("Case %d: %d" % (self.i, x)) self.i += 1 if __name__ == "__main__": ptc = PrintTestCases(); while True: x = int(input()) if x == 0: break ptc.output(x)
[["-", 0, 14, 8, 196, 0, 1, 0, 662, 12, 612], ["+", 0, 14, 8, 196, 0, 1, 0, 662, 12, 612]]
5
77
x = [] while True: if 0 in x: break x.append(int(input())) x.pop() for i, v in enumerate(x): print(('case %d: %d') % (i+1, v))
x = [] while True: if 0 in x: break x.append(int(input())) x.pop() for i, v in enumerate(x): print(('Case %d: %d') % (i+1, v))
[["-", 3, 4, 0, 657, 31, 23, 0, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 23, 0, 557, 0, 6]]
5
55
input_array = [] while True: input_num = int(input()) if input_num == 0: break input_array.append(input_num) for x in range(0, len(input_array)): print(("Case {} :" + str(input_array[x])).format(x+1))
input_array = [] while True: input_num = int(input()) if input_num == 0: break input_array.append(input_num) for x in range(0, len(input_array)): print(("Case {}: " + str(input_array[x])).format(x+1))
[["-", 63, 319, 500, 23, 0, 657, 31, 557, 0, 6], ["+", 63, 319, 500, 23, 0, 657, 31, 557, 0, 6]]
5
63
i = 1 while True: x = input() if int(x) == 0: break print('case ' + str(i) + ': ' + x) i += 1
i = 1 while True: x = input() if int(x) == 0: break print('Case ' + str(i) + ': ' + x) i += 1
[["-", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6]]
5
40
import sys for i, x in enumerate(map(int, sys.stdin())): if x == 0 or not x: break; print('Case {0}: {1}'.format(i + 1, x))
import sys for i, x in enumerate(map(int, sys.stdin)): if x == 0 or not x: break; print('Case {0}: {1}'.format(i + 1, x))
[["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
46
# coding: utf-8 import sys line = sys.stdin count = 1 for x in line : if int(x) == 0 : break print('Case {0}: {1}'.format(count, x)) count += 1
# coding: utf-8 import sys line = sys.stdin count = 1 for x in line : if int(x) == 0 : break print('Case {0}: {1}'.format(count, x), end='') count += 1
[["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]]
5
41
# coding: utf-8 import sys line = sys.stdin count = 1 for x in line : if int(x) == 0 : break print('Case {0}: {1}'.format(count, x)) count += 1
# coding: utf-8 import sys line = sys.stdin count = 1 for x in line : if int(x) == 0 : break print('Case {0}: {1}'.format(count, x.strip())) count += 1
[["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
41
i=1 while (True): a=input() if (a=="0"): break print("Case "+str(i) + ":"+a) i+=1
i=1 while (True): a=input() if (a=="0"): break print("Case "+str(i) + ": "+a) i+=1
[["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]]
5
43
import abc c = 0 while True: i = int(abc.stdin.readline()) if (i == 0): break c+=1 print("Case " + str(c) + ":", i)
import sys c = 0 while True: i = int(sys.stdin.readline()) if (i == 0): break c+=1 print("Case " + str(c) + ":", i)
[["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 3, 4, 0, 652, 63, 319, 500, 319, 500, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 319, 500, 22]]
5
48
cnt = 0 while True: a = input() if a == '0': break cnt += 1 print('Case {0}:{1}'.format(cnt,a))
cnt = 0 while True: a = input() if a == '0': break cnt += 1 print('Case {0}: {1}'.format(cnt,a))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
35
a=1 while True: i=int(input()) if i==0: break else: print("Case {0:d}: {1:d}".format(a,i))
a=1 while True: i=int(input()) if i==0: break else: print("Case {0:d}: {1:d}".format(a,i)) a=a+1
[["+", 75, 76, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612]]
5
35
lis = [] a = int(input()) while a != 0: lis.append(a) a = int(input()) for i,v in enumerate(lis): print("Case %d: %d" % (i,v))
lis = [] a = int(input()) while a != 0: lis.append(a) a = int(input()) for i,v in enumerate(lis): print("Case %d: %d" % (i+1,v))
[["+", 3, 4, 0, 657, 12, 660, 0, 657, 17, 72], ["+", 3, 4, 0, 657, 12, 660, 0, 657, 12, 612]]
5
53
lis = [] a = input() while a != '0': lis.append(a) a = int(input()) for i,v in enumerate(lis): print("Case %d: %d" % (i+1,v))
lis = [] a = input() while a != '0': lis.append(a) a = input() for i,v in enumerate(lis): print("Case %d: %s" % (i+1,v))
[["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
54
while 1: i=1 j=int(input()) if j==0: break print("Case",str(i)+":",j) i+=1
i=1 while 1: j=int(input()) if j==0: break print("Case",str(i)+":",j) i+=1
[["-", 36, 36, 36, 36, 0, 656, 0, 52, 0, 89], ["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 612], ["-", 36, 36, 36, 36, 0, 656, 0, 52, 0, 102], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 0, 89], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 0, 102]]
5
40
i=1 while True: n=eval(input()) if n==0: break print("Case",str(i)+":"+str(n)) i+=1
i=1 while True: n=eval(input()) if n==0: break print("Case",str(i)+":",str(n)) i+=1
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21]]
5
43
import sys i=0 while True: x=sys.stdin.readline().strip() if x=="0": break; print("Case %d: %d"%(i+1,x)) i+=1
import sys i=1 while True: x=sys.stdin.readline().strip() if x=="0": break; print("Case %d: %s"%(i,x)) i+=1
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["-", 3, 4, 0, 657, 12, 660, 0, 657, 17, 72], ["-", 3, 4, 0, 657, 12, 660, 0, 657, 12, 612]]
5
47
import sys i=0 while True: x=sys.stdin.readline().strip() if x==0: break print("Case %d: %d"%(i+1,x)) i+=1
import sys i=1 while True: x=sys.stdin.readline().strip() if x=="0": break print("Case %d: %s"%(i,x)) i+=1
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655], ["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["-", 3, 4, 0, 657, 12, 660, 0, 657, 17, 72],...
5
44
i = 0 while True: x = int(input()) if x != 0: i += 1 print('Case {}:{}'.format(i,x)) else: break
i = 0 while True: x = int(input()) if x != 0: i += 1 print('Case {}: {}'.format(i,x)) else: break
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
38
# coding: utf-8 x=int(input()) i=1 while x!=0: print("Case "+str(i)+":"+str(x)) x=int(input()) i+=1
# coding: utf-8 x=int(input()) i=1 while x!=0: print("Case "+str(i)+": "+str(x)) x=int(input()) i+=1
[["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]]
5
48
num = [] count = 0 while True: x = int(input()) if x ==0: break num.append(x) count +=1 for i,j in zip(range(1,count+1),num): print('case '+str(i)+': '+str(j))
num = [] count = 0 while True: x = int(input()) if x ==0: break num.append(x) count +=1 for i,j in zip(range(1,count+1),num): print('Case '+str(i)+': '+str(j))
[["-", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6], ["+", 0, 657, 31, 657, 31, 657, 31, 557, 0, 6]]
5
72
i = 0 x = int(input()) while x != 0: i += 1 print("Case", i, ":", x, sep="") x = int(input())
i = 0 x = int(input()) while x != 0: i += 1 print("Case ", i, ": ", x, sep="") x = int(input())
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
46
for i in range(10000): x = input() if x == "0": break print("Case {}: {}".format(i, x))
for i in range(1,10001): x = input() if x == "0": break print("Case {}: {}".format(i, x))
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]]
5
34
num = [] while True: x = int(input()) if x == 0: break num.append(x) for i, n in enumerate(num): print('Case {}: {}'.format(i, n))
num = [] while True: x = int(input()) if x == 0: break num.append(x) for i, n in enumerate(num, start=1): print('Case {}: {}'.format(i, n))
[["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 7, 12, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 7, 12, 652, 3, 4, 0, 653, 51, 612]]
5
50
i=1 while(True): x = int(input()) if not x: break print('Case {0}: {1}'.format(i+1, x)) i+=1
i=1 while(True): x = int(input()) if not x: break print('Case {0}: {1}'.format(i, x)) i+=1
[["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 72], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]]
5
39
i=1 x=int(input()) while x!=0: print("Case {0}:{1}".format(i,x)) i=i+1 x= int(input())
i=1 x=int(input()) while x!=0: print("Case {0}: {1}".format(i,x)) i=i+1 x= int(input())
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
42
i=1 x=int(input()) while x!=0: print("Case {0}:{1}".format(i,x)) i=i+1 x= int(input())
i=1 x=int(input()) while x!=0: print("Case {}: {}".format(i,x)) i+=1 x=int(input())
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["-", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107]]
5
42
import sys a=1 for b in sys.stdin: if b.strip()=='0':break print(f'Case {a}: {b}') a+=1
import sys a=1 for b in sys.stdin: if b.strip()=='0':break print(f'Case {a}: {b.strip()}') a+=1
[["+", 0, 557, 0, 284, 205, 652, 63, 319, 0, 131], ["+", 0, 557, 0, 284, 205, 652, 63, 319, 319, 22], ["+", 0, 557, 0, 284, 205, 652, 3, 4, 0, 24], ["+", 0, 557, 0, 284, 205, 652, 3, 4, 0, 25]]
5
40
import sys a=1 for b in sys.stdin: if b.strip()=='0':break print(f'Case {a}: {b}') a+=1
import sys a=1 for b in sys.stdin: b=b.strip() if b=='0':break print(f'Case {a}: {b}') a+=1
[["-", 0, 656, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]]
5
40
x=input() i=1 while x!="0": print("Case %d:%s" %(i,x)) x=input() i+=1
x = input() i = 1 while x != "0": print("Case %d: %s" % (i, x)) x = input() i += 1
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
35
x=int(input()) i=1 while x!=0: print("Case %d:%s" %(i,x)) x=int(input()) i+=1
x=int(input()) i=1 while x!=0: print("Case %d: %s" %(i,x)) x=int(input()) i+=1
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
39
i = 0 lis = [] while True: s = input() i += 1 s = int(s) lis.append(s) if s == 0: break for j in range(i - 1): fmt = "case {a}: {b}" s = fmt.format(a = j + 1,b = lis[j]) print(s)
i = 0 lis = [] while True: s = input() i += 1 s = int(s) lis.append(s) if s == 0: break for j in range(i - 1): fmt = "Case {a}: {b}" s = fmt.format(a = j + 1,b = lis[j]) print(s)
[["-", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6]]
5
74