import java.util.*;

public class Solution {
    public ArrayList<Integer> GetLeastNumbers_Solution(int[] num, int k)
	{
		ArrayList<Integer> shu = new ArrayList<Integer>();
		Arrays.sort(num);
		for (int i = 0; i < k; i++)
			shu.add(num[i]);
		return shu;
	}
}