summaryrefslogtreecommitdiff
path: root/2011/1b/c/c.py
blob: 7bc039a76fdc346c671d228a28c2a2519115e19f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
f = open('1.in', 'r')
o = open('1.out', 'w')

T = int(f.readline().strip())

for t in xrange(T):
    (n, m, o) = map(int, f.readline().strip().split(' '))
    l = f.readline().strip()
    
    res = str(n) + str(m) + str(o) + l
    s = "Case #%d: %s\n" % (t+1, res)
    print s
    #o.write(s)