def handle_ints(ints, startpos=0):
    if (ints[startpos] == 99):
        return ints
    x1 = ints[(startpos + 1)]
    x2 = ints[(startpos + 2)]
    outpos = ints[(startpos + 3)]
    if (ints[startpos] == 1):
        ints[outpos] = (ints[x1] + ints[x2])
    elif (ints[startpos] == 2):
        ints[outpos] = (ints[x1] * ints[x2])
    return handle_ints(ints, (startpos + 4))
def handle_ints(ints, startpos=0):
    if (ints[startpos] == 99):
        return ints
    x1 = ints[(startpos + 1)]
    x2 = ints[(startpos + 2)]
    outpos = ints[(startpos + 3)]
    if (ints[startpos] == 1):
        ints[outpos] = (ints[x1] + ints[x2])
    elif (ints[startpos] == 2):
        ints[outpos] = (ints[x1] * ints[x2])
    return handle_ints(ints, (startpos + 4))