D. Rectangle Division
time limit per test
2 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output
Examples
Input
2 2 2
Output
4
Input
2 3 3
Output
7