def task9(a: int) -> int:
    """
    Function that computes the value of a+aa+aaa+aaaa with a given digit as the value of a

    Input: digit as integer
    Output: number as integer
    """
    pierwsza = a
    druga = int(str(a)*2)
    trzecia = int(str(a) * 3)
    czwarta = int(str(a) * 4)
    wynik = pierwsza + druga + trzecia + czwarta
    return wynik