def extract(num):
    """
    Given a max 3 character number, extract and return hundredth, tenth and one value

    Parameters
    ----------
    num: string
        Number in string

    Return
    ----------
    hundredth: int
        Hundredth number
    tenth: int
        Tenth number
    one: int
        One number
    """
    hundredth = 0
    tenth = 0
    one = 0
    if len(num) == 3:
        hundredth, tenth, one = int(num[0]), int(num[1]), int(num[2])

    if len(num) == 2:
        tenth, one = int(num[0]), int(num[1])

    if len(num) == 1:
        one = int(num[0])

    return hundredth, tenth, one