cordup1result= [10, 11, 12, 13, 14, 16, 19, 21, 22, 23, 25, 34, 35, 36, 38, 40, 41, 47, 48, 49, 50, 61, 63, 65, 83, 86, 87, 88, 89, 91, 95, 101, 102, 103, 104, 105, 106, 107, 109, 113, 116, 117, 118, 119, 121, 123, 124, 125]
def getstats(a,b,c):
	cumulative=[]
	for x in a:
		for y in x:
			if y not in cumulative:
				cumulative.append(y)
	for x in b:
		for y in x:
			if y not in cumulative:
				cumulative.append(y)
	for x in c:
		for y in x:
			if y not in cumulative:
				cumulative.append(y)
	precision = len(set(cumulative).intersection(set(cordup1result)))/(float)(len(cumulative))
	print 'precision=',precision
	recall = len(set(cumulative).intersection(set(cordup1result)))/(float)(len(cordup1result))
	print 'recall=',recall
	fmeasure = 2*precision*recall/(precision+recall)
	print 'fmeasure=',fmeasure
