out, max_out, max_times = 0, -1, []
for job in open('mlijobs.txt'):
    out += 1 if  in job else -1
    if out > max_out:
        max_out, max_times = out, []
    if out == max_out:
        max_times.append(job.split()[3])

print(% max_out)
print('  ' + '\n  '.join(max_times))