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

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

for t in xrange(T):
    (N, PD, PG) = map(int, f.readline().strip().split(' '))
    
    wt = N * PD / 100
    wy = N * PG / 100

    res = 'Possible' if PD > PG else 'Broken'
    s = "Case #%d: %s\n" % (t+1, res)
    print s
    o.write(s)