How to guess the cards from four viewers

The magician sits at the table and invites four people to sit down for him. Further, the conjurer gives out 5 cards to himself and each viewer. After that, he offers each viewer to look at his cards and remember one of them. Then the magician collects cards and places them on 5 stacks with a shirt up. Then he asks one of the spectators to point out any pile. Then he takes this stack of cards in his hands and unfolds the cards in a fan in the open, asking if any of the spectators see his card. If someone sees, then without looking at the cards, the magician immediately pulls it out. Similarly, the magician arrives with other stacks of cards until all the cards selected by the spectators are found. In this case, two conceived cards can be in one pile, respectively, then in one of the piles there will be none at all. But anyway, the conjurer nevertheless accurately determines the cards that the viewers have chosen.
The secret of the focus is the following. The magician must collect five cards, starting from the left of him clockwise. The cards are collected in closed form. When all the stacks are collected, the magician's cards will be on top. Then all the cards one by one again are laid out in piles of 5 cards in each pile. Thus, it turned out that in each pile there will be one map of each viewer, including a magician. After that the viewer can show on any pile and if the second viewer sees the conceived map, then this card will be the second one on top of the stack, if the card is seen by the third spectator, then the card will be the third one, etc. Everything is very simple, the location of the card in the pile Corresponds to the number of the viewer, if we consider it to the left of the magician. This account is suitable for any stack.