def makeup(_x, n):
    """
    Increase the length of _x to be n by duplicating some elements
    :param _x: input length
    :param n: output size
    :return: list of length n with all original and additional duplicate elements from _x
    """
    x = []
    for i in range(n):
        x.append(_x[i % len(_x)])
    return x