Start: Apr, 17, 2017 11:00:00
Python程序设计基础培训第五次作业
End: Apr, 23, 2017 15:00:00
Time elapsed:
Time remaining:

Problem_ID: C
Result: Accepted
Time: 120ms
Memory: 21428kB
Author: shanzhenyu
In contest: 1089

while True:
	n = int(raw_input())
	if n == 0:
		break;
	li = raw_input().strip().split();
	
	lis = []
	for i in range(n):
		lia = list(li[i]);
		lia.sort();
		lis.append(int("".join(lia)));

	lic = []
	lid = map(int,li)
	for i in range(n):
		if(lis.count(lis[i]) == 1):
			lic.append(lid[i])
		
	if len(lic) == 0:
		print "None"
	else:
		lic.sort()
		for v in lic:
			print v,
		print