Day 1: Dusty Shed ★★

The planes are grounded, so the Elves have dusted off an old Christmas train. Before it can leave, six kinds of parts have to be found and loaded, but the shed's inventory records are gone. All anyone has is a list of crate IDs, and nobody remembers which ID means what.

My shed

2,012 crates on the list, 500 different IDs.

Piled to the rafters

The shed used to be full of these, so they should be the three most common IDs.

ItemCrate IDCrates
Contraptions2137
Gizmos6846
Apparatuses8156
Part A: IDs multiplied118738980

Across the shed

Grandpa Elf always had to walk all the way across the shed for these, so they should be the three rarest IDs.

ItemCrate IDCrates
Thingamabobs5481
Thingamajigs6661
Screws4152
Part B: IDs multiplied151461720

Check your own crate list

Paste a list of crate IDs, one per line. It starts with the example list from the puzzle.