···33333434Of course, the actual engine schematic is much larger. *What is the sum of all of the part numbers in the engine schematic?*
35353636-To begin, [get your puzzle input](3/input).
3636+Your puzzle answer was `556057`.
3737+3838+\--- Part Two ---
3939+----------
4040+4141+The engineer finds the missing part and installs it in the engine! As the engine springs to life, you jump in the closest gondola, finally ready to ascend to the water source.
4242+4343+You don't seem to be going very fast, though. Maybe something is still wrong? Fortunately, the gondola has a phone labeled "help", so you pick it up and the engineer answers.
4444+4545+Before you can explain the situation, she suggests that you look out the window. There stands the engineer, holding a phone in one hand and waving with the other. You're going so slowly that you haven't even left the station. You exit the gondola.
4646+4747+The missing part wasn't the only issue - one of the gears in the engine is wrong. A *gear* is any `*` symbol that is adjacent to *exactly two part numbers*. Its *gear ratio* is the result of multiplying those two numbers together.
4848+4949+This time, you need to find the gear ratio of every gear and add them all up so that the engineer can figure out which gear needs to be replaced.
5050+5151+Consider the same engine schematic again:
5252+5353+```
5454+467..114..
5555+...*......
5656+..35..633.
5757+......#...
5858+617*......
5959+.....+.58.
6060+..592.....
6161+......755.
6262+...$.*....
6363+.664.598..
6464+6565+```
37663838-Answer:
6767+In this schematic, there are *two* gears. The first is in the top left; it has part numbers `467` and `35`, so its gear ratio is `16345`. The second gear is in the lower right; its gear ratio is `451490`. (The `*` adjacent to `617` is *not* a gear because it is only adjacent to one part number.) Adding up all of the gear ratios produces `*467835*`.
39684040-You can also [Shareon [Twitter](https://twitter.com/intent/tweet?text=%22Gear+Ratios%22+%2D+Day+3+%2D+Advent+of+Code+2023&url=https%3A%2F%2Fadventofcode%2Ecom%2F2023%2Fday%2F3&related=ericwastl&hashtags=AdventOfCode) [Mastodon](javascript:void(0);)] this puzzle.6969+*What is the sum of all of the gear ratios in your engine schematic?*
7070+7171+Your puzzle answer was `82824352`.
7272+7373+Both parts of this puzzle are complete! They provide two gold stars: \*\*
7474+7575+At this point, you should [return to your Advent calendar](/2023) and try another puzzle.
7676+7777+If you still want to see it, you can [get your puzzle input](3/input).
7878+7979+You can also [Shareon [Twitter](https://twitter.com/intent/tweet?text=I%27ve+completed+%22Gear+Ratios%22+%2D+Day+3+%2D+Advent+of+Code+2023&url=https%3A%2F%2Fadventofcode%2Ecom%2F2023%2Fday%2F3&related=ericwastl&hashtags=AdventOfCode) [Mastodon](javascript:void(0);)] this puzzle.