def parse_encoded_out(s):
    """
    Format: lines with three characters represents
            (time_stamp, average_load, exp_load, raw_load)
            lines with two charatacters represents
            (time_stamp, runtime)
            The first line and any blank line will be discarded
    """
    load_timestamp = []
    avg_loads = []
    exp_loads = []
    raw_loads = []
    runtime_timestamps = []
    runtimes = []
    s_lines = s.splitlines()
    # print(s_lines)

    for index, line in enumerate(s_lines):
        if index == 0 or index == 1:
            continue
        if len(line) == 0:
            continue
        words = line.split()
        if len(words) == 4:
            load_timestamp.append(int(words[0]))
            avg_loads.append(float(words[1]))
            exp_loads.append(float(words[2]))
            raw_loads.append(float(words[3]))
        else:
            runtime_timestamps.append(int(words[0]))
            runtimes.append(float(words[1]))
    return (load_timestamp, avg_loads, exp_loads, raw_loads,
            runtime_timestamps, runtimes)