Consider a chessboard with rows and columns. In how many ways can we place rooks so that at least two rooks threaten each other?
For instance, these are two of the ways for :
Input consists of several numbers . A special case with marks the end of input.
For every , print the number of different ways to place rooks on a chessboard so that at least two rooks threaten each other. For every , this number has less than 10 digits.
Input
2 3 0
Output
4 78