Doublindromes

아직 제출이 없습니다시간 제한3초메모리 제한512 MB

문제

A string aa is a doublindrome if it is a palindrome and it can be represented as concatenation of two non-empty palindromes bb and cc.

Given a string ss composed of lowercase English letters, you must find the number of distinct substrings in ss which are doublindromes of length kk or more. Two substrings are considered distinct if they differ as strings.

입력

The first line of the input contains one integer kk (2k1042 \le k \le 10^4). The second line contains the string ss consisting of lowercase English letters (ks104k \le |s| \le 10^4).

출력

Print one integer: the answer to the problem.