def f(n,o):x=range(n);return(sum(x)-o(x))*10

oracle=lambda coinNumbers:sum(coinNumbers)-0.1*coinNumbers[cheatIndex]

for n in range(1,11):
	print "Input:", n
	for cheatIndex in range(n):
		print "CheatIndex", cheatIndex, "Output:", f(n, oracle)
