#agc058d. [agc058_d]Yet Another ABC String

[agc058_d]Yet Another ABC String

Problem Statement

You are given integers AA, BB, and CC. How many strings SS consisting of A, B, and C satisfy all of the following conditions? Find the count modulo 998244353998244353.

  • The number of occurrences of A, B, and C in SS are AA, BB, and CC, respectively.
  • SS contains none of ABC, BCA, and CAB as a (contiguous) substring.

Constraints

  • 1leqA,B,Cleq1061 \\leq A,B,C \\leq 10^6
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

AA BB CC

Output

Print the answer.


Sample Input 1

1 1 1

Sample Output 1

3

The three strings that satisfy the conditions are ACB, CBA, and BAC.


Sample Input 2

2 2 2

Sample Output 2

42

Sample Input 3

96 11 46

Sample Output 3

818015722

Sample Input 4

125132 102271 152064

Sample Output 4

128086069