1. You are given a string. 2. You have to print the count of distinct and non-empty subsequences of the given string. Note -> String contains only lowercase letters.
Input Format
A String
Output Format
A number
Constraints
1 <= length of string <= 60
Example
Input
abc
Output
7