def mce2det(mcecol, mcerow):
    if (mcecol <= 17):
        detcol = mcecol
    else:
        detcol = (mcecol - 18)
    if (mcerow <= 17):
        detrow = mcerow
        detpol = 'A'
    if (mcerow > 17):
        detrow = (mcerow - 18)
        detpol = 'B'
    im = 0
    return (im, detcol, detrow, detpol)
def mce2det(mcecol, mcerow):
    if (mcecol <= 17):
        detcol = mcecol
    else:
        detcol = (mcecol - 18)
    if (mcerow <= 17):
        detrow = mcerow
        detpol = 'A'
    if (mcerow > 17):
        detrow = (mcerow - 18)
        detpol = 'B'
    im = 0
    return (im, detcol, detrow, detpol)