print the lcs