Problem2318--K-City

2318: K-City

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Time Limit: 2 sec / Memory Limit: 256 MB

Score : 100100 points

Problem Statement

In K-city, there are nn streets running east-west, and mm 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 ≤ 1002n,m100

Input

Input is given from Standard Input in the following format:
nnmm

Output

Print the number of blocks in K-city.

Sample Input Copy

3 4

Sample Output Copy

6

HINT

There are six blocks, as shown below:

9179be829dc9810539213537d4c7398c.png

Source/Category