def get_clicked_pos(pos, rows, width):
    """
    Gets node clicked on.
    :param pos: tuple
    :param rows: int
    :param width: int
    :return: int, int
    """
    gap = width // rows
    y, x = pos

    row = y // gap
    col = x // gap

    return row, col