import java.util.ArrayList;
import java.util.*;
public class Solution {
    public ArrayList<Integer> GetLeastNumbers_Solution(int [] input, int k) {
        Arrays.sort(input);
        ArrayList<Integer> list =new ArrayList<Integer>();
        for(int i=0;i<k;i++){
            list.add(input[i]);
        }
        return list;
    }
}