# Python program to print All Distinct 
# Elements of a given integer array 

from collections import OrderedDict 

def printDistinct(input): 
	# convert list into ordered dictionary 
	ordDict = OrderedDict.fromkeys(input) 

	# iterate through dictionary and get list of keys 
	# list of keys will be resultant distinct elements 
	# in array 
	result = [ key for (key, value) in ordDict.items() ] 

	# concatenate list of elements with ', ' and print 
	print (', '.join(map(str, result))) 

# Driver program 
if __name__ == "__main__": 
	input = [12, 10, 9, 45, 2, 10, 10, 45] 
	printDistinct(input) 
