Product
题号:NC224151
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Bob has three integers .

For a non-negative integer sequence , we denote the weight of it is:



Now Bob wants to know the sum of the weight of all of the sequences which satisfies the following conditions:

1.

2.

If the answer is irreducible fraction , you need to output an integer in which satisfies

It's guaranteed that .

输入描述:

The first line has three integers .

.

.

.

输出描述:

Output the answer.
示例1

输入

复制
3 1 5

输出

复制
748683282