December 8th

Nuisance numbers

One of the elves was practising their random number generation coding skills and has accidentally ruined the top 280 toys of 2024 list. The list now contains randomly placed random values as part of every toy name. It turns out that a strange manipulation of these numbers opens the door to your next password.

Your task is to consider the integer value found inside each string value. You then need to total up each group of 5 integers.

 Once you have the totals for each group of 5, find out how many toys are 'left over' after packing them into boxes of 5, and sum all THOSE numbers to get the total number of toys left over.


For example:


['Action Figure7', 'D6oll', '9Board Game', 'LEGO Se4t', 'Remote Control C5ar', 'Puzzl6e', 'Teddy9 Bear', 'Play4-Doh', 'Yo-y4o', 'Ki4te']


First group of 5 = 7, 6, 9, 4, 5 giving a total of 31, which is 6 boxes of 5 and 1 toy left over


Second group of 5 = 6, 9, 4, 6, 4 giving a total of 27, which is 5 boxes of 5 and 2 toys left over.


Total left over toys: 1 + 2 = 3


NOTE: The data set was changed early on, because 'Magic 8-B1all' had TWO numbers inside it. Oops.

Your data set:

to4ys=['Action Figure7', 'D6oll', '9Board Game', 'LEGO Se4t', 'Remote Control C5ar', 'Puzzl6e', 'Teddy9 Bear', 'Play4-Doh', 'Yo-y4o', 'Ki2te', 'R5obot Toy', '6Building Blocks', 'Art 9Supplies', 'Toy Tr7ain', 'Stuff3ed Animal', 'RC He9licopter', 'Mode3l Kit', 'B8icycle', 'Jump 4Rope', 'Video8 Game', 'Soccer B1all', 'Basketba7ll', '4Dartboard', 'C1hess Set', '6Trampoline', 'Water Gu6n', '2Toy Kitchen Set', 'Musical I8nstrument', '6Karaoke Machine', 'Coloring 2Book', '7Skateboard', 'Fri2sbee', "Rubik'7s Cube", 'S7linky', 'Science8 Kit', '9Magic Kit', 'Gardening 3Kit', '1Toy Telescope', 'Hot Wheels Ca3rs', 'P9lay Kitchen', 'Airp3lane Model', 'Doctor8 Kit', 'Tool S7et', 'Outd7oor Playhouse', 'Jigsa5w Puzzle', 'Slink9y', '4Marbles Set', 'Tennis Racket1', 'Bad7minton Set', 'Bas6ketball Hoop', 'Remote Control6 Boat', '8Puppet', 'Gui2tar', 'Building Toy Set3', 'Watercolor2 Paint Set', 'Hula 3Hoop', 'Dinosaur Fi7gures', 'Toy Microscope1', 'Model 4Rocket', 'Crayon Set3', 'LEGO Te8chnic Set', 'Truc3k Toy', 'Construction3 Vehicle Set', '6Golf Set', '3Juggling Balls', 'Paddl7e Ball', 'Bean Bag Toss Gam3e', 'Robot D4og Toy', 'Foosball Table1', 'Kale2idoscope', 'Squishy Toy3s', 'RC Airpla7ne', 'Parac9hute Toy', 'Tambourine3', 'Bub7ble Wand', 'Helicopter To2y', 'Jumping6 Jack Toy', 'Plus1h Pillow', '3Dollhouse', 'Wa1tercolor Paper', 'Pu6zzle Mat', '6Playdough Set', 'Wooden B9locks', 'Karaoke Mi8crophone', 'Science L8ab Kit', 'P5uzzle Cube', 'Mecha4nical Toy', 'To6y Camera', 'Ice Cream Play1 Set', 'P6lay Tool Bench', 'T9oy Phone', 'Dr8ess-Up Costume', 'Ride-On To7y', 'Spinn1ing Top', 'Kaleidos3cope', 'Card Gam1e', 'Electronic Pe3t Toy', 'Slin4ky Dog Toy', '5Rocking Horse', 'S9ticker Book', 'Doll5 Stroller', 'Race Car 3Set', 'Foam Dar1t Gun', 'Scoot3er', '8Kite', 'Bow and Arrow Se4t', '8Chalk Set', 'Musical1 Jewelry Box', 'Pinball G7ame', 'Plush Un7icorn', 'Crayon S1et', 'Bubble 5Machine', 'Jigsaw Puzzle6', 'Doodle P8ad', 'Magic eight-B1all', 'Sen1sory Toy', 'Spir1ograph', 'RC 1Monster Truck', 'Tamb3ourine', 'Wooden Tr5ain Set', 'Glow-in-the-Dar5k Stars', 'Magnetic Buil7ding Blocks', 'Bubbl2e Bath Toy', 'Plush Pa9nda', 'Sandcastle K1it', 'Gardening 4Tools', 'P6uzzle Globe', 'R3C Tank', 'Toy C4ash Register', 'Fishing Gam7e', 'J9umping Rope', 'P4aint by Numbers Kit', 'Sticker Se6t', 'Chu9tes and Ladders Game', 'Toy Cash Regi8ster', 'Doll High Chai6r', 'Kale5idoscope', 'Slinky Spring1', 'Tetherball Se9t', 'Plus8h Monkey', 'Ed2ucational Flashcards', 'LEGO Friends Set1', 'Magic Marke2rs', 'Marble Run1', 'Tic Tac Toe Gam2e', 'Fidget S1pinner', 'Race Car T2rack', 'Solar6 System Model', 'Plush G7iraffe', 'Puzzle E4rasers', 'Domino Set4', 'Plush Elephant6', '3Toy Bowling Set', 'Air Hockey Ta4ble', 'RC Submari7ne', 'J4umping Ball', '7Squirt Gun', 'Sandbox Ki1t', 'Inflatabl2e Bounce House', 'Felt T7ip Pens', '6Musical Keyboard', 'Plush 9Cat', 'Toy Pirate Sh2ip', 'Spir9ograph', 'LEGO Mindstorm3s Set', 'Toy Recorde1r', 'Toy3 Laptop', 'Play4 Food Set', 'Finger Paint4s', 'Plush Duck8', '1Building Block Tape', 'RC Motorcycle6', 'Ch1alkboard and Easel', 'Mag3ic Wand', 'To9y Pirate Telescope', 'Puzzle R2oll-Up Mat', 'T4oy Saxophone', 'P4lush Rabbit', 'RC Dri6ft Car', 'Wooden Doll Crad7le', 'Marble 7Maze', 'Wat9ercolor Pencils', 'LEGO7 Architecture Set', 'Toy Cash2 Register', 'Plush Ti4ger', 'Foam Swor4d', 'Jigsaw Puzzl3e', 'RC Rock Crawle9r', 'S3linky Jr.', 'Plush Koa5la', '8Building Toy Set', 'Sp7irograph', 'Magic Sl3ate', 'Toy Butterfl9y Net', '8Rubber Duck', 'Puzzl3e Storage Box', 'Educational Tabl6et', 'Plush4 Horse', 'LEGO 4City Set', 'Bubble Wra2p', 'Toy Record9er', 'Pu6zzle Glue', 'Sticker9 Mosaics', 'Plu4sh Dog', 'Wooden ABC Block2s', 'Finger Pup8pets', 'Pla8ydough Tools', 'Foam Blo1cks', 'Slinky6 Dog', 'Plush 6Lion', 'Magic Co2loring Book', 'Toy Docto3r Bag', 'Water4color Crayons', 'Puzzl5e Table', 'E5ducational Computer Game', 'Plus1h Penguin', 'Wooden Number B7locks', 'Chalkboard Eras2er', 'Toy Fishing P4ole', 'Slin9ky Jr.', 'Plu5sh Pig', '3LEGO Star Wars Set', '8Building Toy Set', 'Magic Tricks Se1t', 'Sticker Activity Boo8k', 'Plus1h Zebra', 'RC 6Dune Buggy', '6Wooden Shape Sorter', 'Felt Tip Marker2s', 'Puzzle8 Book', 'Educational2 DVD', 'Plush Sea T7urtle', 'LE1GO Creator Set', 'Wat9ercolor Markers', 'Toy Frisbe6e', 'Plush 8Owl', 'Pu2zzle Poster', 'RC Q5uadcopter', '4Building Toy Set', 'Magic Hat4', 'Sticker7 Sheet', 'Plu3sh Shark', 'Woo1den Puzzle', 'Finger Paint Paper9', 'To8y Microphone', 'Slinky Jr5.', 'Plush5 Snake', 'Educational Bo6ard Game', 'LEGO Technic3 Set', 'W9atercolor Paintbrushes', 'Puzzle 7Game', 'Plus1h Dinosaur', 'RC 5Sailboat', 'Buildi2ng Toy Set', 'Magic Cards8', 'Sticker6 Roll', 'Wo5oden Bead Maze', 'Plush Bu1tterfly', 'Toy B5inoculars', 'Felt Craft Kit8', 'Educational6 Puzzle', 'LEGO Frien6ds Set', 'Wa9tercolor Sketchbook', 'Puzzle K7it', 'Plush 2Fox', 'RC5 Airship', 'Buildin9g Toy Set', 'Magic Set6', 'Sticker Se4t', 'Wooden Aba7cus', 'Plush Elephant9', 'Toy Ta1mbourine', 'Finger Paint Palet9te', 'Slinky2 Dog', 'Plush G2iraffe', 'Educational Flash3cards', 'LEGO Mindstorms 8Set', 'Watercolor Paper 3Pad', 'Puzzle Cub1e', 'Plush Pup1py']