list median and palindrome