You are given a string s of lowercase letters. Count the number of ways to partition s into one or more contiguous, non-overlapping pieces (covering the whole string, in order) such that every piece is itself a palindrome.
Input format
Line 1: the string s.
Output format
A single integer: the number of all-palindrome partitions of s.
Constraints
- 1 ≤ length of s ≤ 16
- s contains only lowercase English letters.