4. Pete, Vasya, and Ivan each wrote a random digit on their own card and passed the cards to Masha so that she couldn't see the written digits. Masha randomly shuffled the cards and laid them out in a row on the table. Find the probability that a three-digit number on the table is divisible by 3 and leaves a remainder of 5 when divided by 8.
Answer: $\quad P=0.037$.