Calf Flac
#描述#
It is said that if you give an infinite number of cows an infinite number of heavy-duty laptops (with very large keys), that they will ultimately produce all the world's great palindromes. Your job will be to detect these bovine beauties.
Ignore punctuation, whitespace, and case when testing for palindromes, but keep these extra characters around so that you can print them out as the answer; just consider the letters A-Z' and
a-z'.
Find any largest palindrome in a string no more than 20,000 characters long. The largest palindrome is guaranteed to be at most 2,000 characters long before whitespace and punctuation are removed.
#格式#
##输入格式##
There are more than one cases.
there are one blank line between each case.
A file with no more than 20,000 characters. The file has one or more lines. No line is longer than 80 characters (not counting the newline at the end).
##输出格式##
The first line of the output should be the length of the longest palindrome found. The next line or lines should be the actual text of the palindrome (without any surrounding white space or punctuation but with all other characters) printed on a line (or more than one line if newlines are included in the palindromic text). If there are multiple palindromes of longest length, output the one that appears first.
#样例1#
##样例输入1##
Confucius say: Madam, I'm Adam.
##样例输出1##
11
Madam, I'm Adam
#限制#
1000ms
32768KB
#提示#
#来源#