Ivan and Adeline are in a classroom with a chalkboard. They are standing on different halves of the board, and on each half, the number is written. When Ivan’s teacher gives a signal, Ivan multiplies the number on his side of the board by and writes the answer on the board, erasing the number he started with. Adeline does the same on each signal, except that she multiplies by . The teacher gives 10 signals in total. How many times (including the initial number) do Ivan and Adeline have the same number written on the board