def next_event_name(trace: list, prefix_length: int):
    """Return the event event_name at prefix length or 0 if out of range.

    """
    if prefix_length < len(trace):
        next_event = trace[prefix_length]
        name = next_event['concept:name']
        return name
    else:
        return 0