There is a bag with 16 letters: A, A, A, A, B, B, D, I, I, M, M, N, N, N, Ya, Ya. Anna, Vanya, Dani, and Dima each took 4 letters from the bag, and the bag was emptied. Each of them tried to spell their name with the letters they took. What is the maximum number of kids that could successfully spell their name? Explain your answer.