def printWest(row, col):
    extraProb = 0
    str = '[] x={} -> '.format(rc2i(i, j))
    if (rc2i((i - 1), j) == (- 1)):
        extraProb += probE
    else:
        str = (str + " {}:(x'={}) +".format(probE, rc2i((i - 1), j)))
    if (rc2i((i + 1), j) == (- 1)):
        extraProb = (extraProb + probW)
    else:
        str = (str + " {}:(x'={}) +".format(probW, rc2i((i + 1), j)))
    if (rc2i(i, (j + 1)) == (- 1)):
        extraProb = (extraProb + probB)
    else:
        str = (str + " {}:(x'={}) +".format(probB, rc2i(i, (j + 1))))
    if (rc2i(i, (j - 1)) == (- 1)):
        extraProb = (extraProb + probN)
    else:
        str = (str + " {}:(x'={}) +".format(probN, rc2i(i, (j - 1))))
    print((str + " {}:(x'={});".format((probS + extraProb), rc2i(i, j))))
def printWest(row, col):
    extraProb = 0
    str = '[] x={} -> '.format(rc2i(i, j))
    if (rc2i((i - 1), j) == (- 1)):
        extraProb += probE
    else:
        str = (str + " {}:(x'={}) +".format(probE, rc2i((i - 1), j)))
    if (rc2i((i + 1), j) == (- 1)):
        extraProb = (extraProb + probW)
    else:
        str = (str + " {}:(x'={}) +".format(probW, rc2i((i + 1), j)))
    if (rc2i(i, (j + 1)) == (- 1)):
        extraProb = (extraProb + probB)
    else:
        str = (str + " {}:(x'={}) +".format(probB, rc2i(i, (j + 1))))
    if (rc2i(i, (j - 1)) == (- 1)):
        extraProb = (extraProb + probN)
    else:
        str = (str + " {}:(x'={}) +".format(probN, rc2i(i, (j - 1))))
    print((str + " {}:(x'={});".format((probS + extraProb), rc2i(i, j))))