import sys, string

if len(sys.argv)==1:
	print 'Usage:'
	sys.exit(0)

f = open(sys.argv[1], "r")

foundZero = False

for line in f:
	if line.find(':') != -1 and foundZero:
		sub = line[line.find(':')+1:len(line)]
		score = int(sub)
		print score


	if line.find('Policy 0:') != -1:
		foundZero = True
	else:
		foundZero = False




