def final(pitches: list) -> int:
    """The final pitch

    >>> final([60, 62, 64, 65, 64])
    64

    Parameters
    ----------
    pitches : list
        List of MIDI pitches

    Returns
    -------
    int
        The final pitch
    """
    return pitches[-1]