shortest output
merge