P15892 [AtCoder] Given are three positive integers A, B, and C. Compute the following value modulo 998244353:
提高-
题目描述

Given are three positive integers A, B, and C. Compute the following value modulo 998244353:
$\sum_{a=1}^{A} \sum_{b=1}^{B} \sum_{c=1}^{C}$ abc

-----Constraints-----
- $1 \leq A, B, C \leq 10^9$

-----Input-----
Input is given from standard input in the following format:
A B C

-----Output-----
Print the value modulo 998244353.

-----Sample Input-----
1 2 3

-----Sample Output-----
18

We have: $(1 \times 1 \times 1) + (1 \times 1 \times 2) + (1 \times 1 \times 3) + (1 \times 2 \times 1) + (1 \times 2 \times 2) + (1 \times 2 \times 3) = 1 + 2 + 3 + 2 + 4 + 6 = 18$.

输入格式

见题面

输出格式

见题面

样例输入
1 2 3
样例输出
18