- 간단한 그리디 알고리즘
import sys
input = sys.stdin.readline
T = int(input())
for i in range(0, T):
# 정가의 75% 할인된 값을 저장하는 배열
result = []
N = int(input())
products = list(map(int, input().strip().split()))
products = sorted(products, reverse=True)
for price in products:
if int(price * 0.75) in products:
result.append(int(price * 0.75))
products.remove(int(price * 0.75))
else:
pass
result.sort()
res = ' '.join(map(str, result))
print("Case #" + str(i+1) + ": " + res)