def first_half(dayinput):
    """
    first half solver:
    Starting with a frequency of zero, what is the resulting
    frequency after all of the changes in frequency have been applied?
    """
    lines = dayinput.split('\n')
    result = 0
    for freq in lines:
        result += int(freq)
    return result