Start: Jul, 06, 2019 10:00:00
20190706Python程序设计基础培训扩展练习
End: Jul, 17, 2019 12:00:00
Time elapsed:
Time remaining:

Problem_ID: K
Result: Accepted
Time: 45ms
Memory: 25184kB
Author: 2018212212099
In contest: 1300

while True:
	try:
		n=int(input())
		if n==0:
			break
		a=input().split()
		b=[]
		for n in a:
			n=list(n)
			n.sort()
			n="".join(n)
			b.append(n)
		c = []
		for i in range(len(a)):    
			if b.count(b[i]) == 1:
				c.append(int(a[i]))
		if len(c) == 0:
			print("None")
		else:
			c.sort()
			for n in c:
				print(n,end=" ")
			print("")
	except EOFError:
		break