def read_numbers(line):
    """
    This function reads the pp (purchase price) and ch (cash) float numbers from the input line.
    @param line -- Input line with the numbers
    @return -- (pp, ch) tuple with the read float numbers
    """
    args = line.split(';')
    pp = float(args[0])
    ch = float(args[1])

    if (pp < 0.0) or (ch < 0.0) or (ch < pp):
        raise Exception("ERROR")

    if (pp == ch):
        raise Exception("ZERO")

    return pp, ch