"""hackerrank_Magical_Girl_Devu_And_Spirits.py

"""


def main():
    t = int(raw_input())
    for _ in xrange(t):
        n = int(raw_input())
        arr = map(int, raw_input().split())
        print arr


if __name__ == '__main__':
    main()
