You are given the Fibonacci string \mathbf{f_k}. Find how many of its substrings are palindromes.
The Fibonacci string is defined by the following recurrence relation:
The first five Fibonacci strings are: "a", "b", "ab", "bab", "abbab".
A string is called a palindrome if it reads the same left-to-right and right-to-left. For example, the string "ded" is a palindrome.
The first line contains an integer (0 \le k \le 30) — the index of the Fibonacci string.
Print a single integer — the number of palindromic substrings in the string \mathbf{f_k}.
Example 1