<image>A regular octahedral die is composed of two square pyramids joined together (as shown in the diagram)

If each face is marked with a different prime number less than 20, and after rolling the die, the resulting numbers from different angles are observed as follows: find the value of _A.