In the glorious city of Jellystone, today they are holding a competition called Jellystone Matching Pairs to find out who has the best memory. You also take part in this competition. A playing field will appear on the screen in front of you on which you will see the cards. They will be marked with images of the inhabitants of the city. You will have to carefully examine everything and remember their location. After a while, the cards will turn over and you will not see their images. Now you will have to open two cards in one move on which two identical images will be applied. Thus, you will remove them from the playing field and get points for it. Your task is to clear the entire field of cards in the shortest possible time.