"Shrine tiles cannot be placed adjacent to more than one monastery, and monasteries cannot be placed adjacent to more than one shrine. Shrine tiles are otherwise placed normally." It is not mentioned nothing about what happens if the tile surrounded with red was the tile A.
Tile A