Tiling with Hexagons

题意翻译

给定一个由正六边形拼成的不规则六边形的边长$a,b,c$,求该新六边形由多少个正六边形构成的。 例如下图中$a=2,b=3,c=4$,它由$18$个正六边形组成。 ![pic](https://cdn.luogu.org/upload/vjudge_pic/CF216A/3f981143d696c9bb68234ae6ba7b4116d86bd7a4.png)

题目描述

Several ages ago Berland was a kingdom. The King of Berland adored math. That's why, when he first visited one of his many palaces, he first of all paid attention to the floor in one hall. The floor was tiled with hexagonal tiles. The hall also turned out hexagonal in its shape. The King walked along the perimeter of the hall and concluded that each of the six sides has $ a $ , $ b $ , $ c $ , $ a $ , $ b $ and $ c $ adjacent tiles, correspondingly. To better visualize the situation, look at the picture showing a similar hexagon for $ a=2 $ , $ b=3 $ and $ c=4 $ . ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF216A/3f981143d696c9bb68234ae6ba7b4116d86bd7a4.png)According to the legend, as the King of Berland obtained the values $ a $ , $ b $ and $ c $ , he almost immediately calculated the total number of tiles on the hall floor. Can you do the same?

输入输出格式

输入格式


The first line contains three integers: $ a $ , $ b $ and $ c $ ( $ 2<=a,b,c<=1000 $ ).

输出格式


Print a single number — the total number of tiles on the hall floor.

输入输出样例

输入样例 #1

2 3 4

输出样例 #1

18