import contextlib


def find_start(grid):
    """Finds the coordinates of the start mark "M" in the grid."""
    for i, row in enumerate(grid):
        with contextlib.suppress(ValueError):
            return (i, row.index('M'))

    raise ValueError('start mark "M" not found in grid')