A string consists of only \'a\' and \'b\' as the characters. The perfectness of the string is described as the maximum length substring of equal characters. Given is a number k