def task8(lancuch: str) -> bool:
    """
    Function that receives a sequence of space separated 4 single digits (e.g. '1 2 3 4') as input and then check
    whether they as one number (1234) is divisible by 5 or not.

    Input: string with 4 digits
    Output: Boolean value (True or False)
    """
    pierwsza = lancuch[0] #"1"
    druga = lancuch[2]    #"2"
    trzecia = lancuch[4]
    czwarta = lancuch[6]
    razem = pierwsza + druga + trzecia + trzecia + czwarta # "1234"
    razem_liczba = int(razem)
    if razem_liczba % 5 == 0:
        return True
    else:
        return False