#abc234f. [abc234_f]Reordering

[abc234_f]Reordering

Problem Statement

Given is a string SS. How many different strings can be obtained as a permutation of a non-empty, not necessarily contiguous subsequence of SS?

Since the count can be enormous, print it modulo 998244353998244353.

Constraints

  • SS is a string of length 11 and 50005000 (inclusive) consisting of lowercase English letters.

Input

Input is given from Standard Input in the following format:

SS

Output

Print the number of different strings that can be obtained as a permutation of a subsequence of SS, modulo 998244353998244353.


Sample Input 1

aab

Sample Output 1

8

There are 88 different strings that can be obtained as a permutation of a subsequence of SS: a, b, aa, ab, ba, aab, aba, baa.


Sample Input 2

aaa

Sample Output 2

3

Sample Input 3

abcdefghijklmnopqrstuvwxyz

Sample Output 3

149621752

Be sure to print the count modulo 998244353998244353.