AtCoder Beginner Contest 106
翻译中…
Problem Statement
翻译中…
There is a farm whose length and width are $A$ yard and $B$ yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)
翻译中…

翻译中…
What is the area of this yard excluding the roads? Find it.
翻译中…
Note
翻译中…
It can be proved that the positions of the roads do not affect the area.
翻译中…
Constraints
翻译中…
$A$is an integer between$2$and$100$(inclusive).$B$is an integer between$2$and$100$(inclusive).
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
A B
翻译中…
Output
翻译中…
Print the area of this yard excluding the roads (in square yards).
翻译中…
样例
Input #1
2 2
Output #1
1
In this case, the area is $1$ square yard.
Input #2
5 7
Output #2
24
In this case, the area is $24$ square yards.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。