AtCoder Beginner Contest 069
A
K-City
AtCoder
⌀ 0
原题
←B →
翻译中…

Problem Statement

翻译中…

In K-city, there are $n$ streets running east-west, and $m$ streets running north-south. Each street running east-west and each street running north-south cross each other. We will call the smallest area that is surrounded by four streets a block. How many blocks there are in K-city?

翻译中…

Constraints

翻译中…
  • $2 ≤ n, m ≤ 100$
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

n m

翻译中…

Output

翻译中…

Print the number of blocks in K-city.

翻译中…

样例

Input #1
3 4
Output #1
6
There are six blocks, as shown below: ![9179be829dc9810539213537d4c7398c.png](https://atcoder.jp/img/abc069/9179be829dc9810539213537d4c7398c.png)
Input #2
2 2
Output #2
1
There are one block, as shown below: ![997bfafa99be630b54d037225a5c68ea.png](https://atcoder.jp/img/abc069/997bfafa99be630b54d037225a5c68ea.png)
题目信息
题号
abc069_a
时间限制
2 s
内存限制
256 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。