Problem: Sorting is considered to be one of the most important skills to be learned in computer science and has it's applications in real product building.
The problem has arised to the team of PcCube.They need to sort the set of alphanumeric strings in such a way that the positions of alphabets and numbers remains unchanged. 

Input
First line of the input contains T , i.e. number of test cases.Then next T lines contains a string S.
 

Output
Output description.
Output the sorted form of S such that the positions of alphabets and numbers remains unchanged.
 

Constraints

1 ≤ T ≤ 100
1 ≤ N ≤ 1000000

 

Example
Input:
1
951f5gd3

Output:
135d5fg9

Solution (in PYTHON):

Solution:
T = int(raw_input())
for i in xrange(T):
	S = raw_input()
	numLst = []
	charLst = []
	ansLst = []
	for i in S:
		if (ord(i) > 47 and ord(i) < 58): 	
			numLst.append(i)
		else:
			charLst.append(i)
	numLst.sort(reverse=True)
	charLst.sort(reverse=True)
	for i in xrange(S.__len__()):
		if (ord(S[i]) > 47 and ord(S[i]) < 58):
			ansLst.append(numLst.pop())
		else:
			ansLst.append(charLst.pop())
	print "".join(ansLst)