Now there are $K$ people play Halli Galli game.They will play $N$ turns in all,in the order of the first player,the second player,$\cdots$,the $K$ player,the first player,$\cdots$.
In one turn,the player will display a card on his side,if there are $a$ kinds of fruit which its total ammount is exactly 5 in all sides,the bell will be pushed $a$ times in this turn.Notices that the previous card will be covered by the current card.
Now you have to calculate the total times they push the bell in $N$ turns.