Kong Rong shares pears, everyone praises!
Kong Rong's kindergarten has N children. The teacher often gives each child a pear. Kong Rong always chooses the smallest one.
The first line is two positive integers, T (1≤T≤100) and N (1≤N≤1000), indicating that there are T test cases and N children.
Next, there are T lines, each line is the input of a test case, that is, N positive integers not greater than 1000 are input, representing the size of N pears.
The output of each test case occupies one line, which is a positive integer, representing the pear size selected by Kong Rong in this test case.