def mul(a, b):
    if ((a == 0) or (b == 0)):
        return 0
    return alog[((log[(a & 255)] + log[(b & 255)]) % 255)]
def mul(a, b):
    if ((a == 0) or (b == 0)):
        return 0
    return alog[((log[(a & 255)] + log[(b & 255)]) % 255)]