After feeling like you've been falling for a few minutes, you look at the device's tiny screen. "Error: Device must be calibrated before first use. Frequency drift detected. Cannot maintain destination lock." Below the message, the device shows a sequence of changes in frequency (your puzzle input). A value like +6 means the current frequency increases by 6; a value like -3 means the current frequency decreases by 3.

For example, if the device displays frequency changes of +1, -2, +3, +1, then starting from a frequency of zero, the following changes would occur:

In this example, the resulting frequency is 3.

Here are other example situations:

Starting with a frequency of zero, what is the resulting frequency after all of the changes in frequency have been applied?

To begin, get your puzzle input.

Answer: