102031: [AtCoder]ABC203 B - AtCoder Condominium

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $200$ points

Problem Statement

A condominium AtCoder has $N$ floors, called the $1$-st floor through the $N$-th floor. Each floor has $K$ rooms, called the $1$-st room through the $K$-th room.

Here, both $N$ and $K$ are one-digit integers, and the $j$-th room on the $i$-th floor has the room number i0j. For example, the $2$-nd room on the $1$-st floor has the room number $102$.

Takahashi, the manager, got interested in the sum of the room numbers of all rooms in the condominium, where each room number is seen as a three-digit integer. Find this sum.

Constraints

  • $1 \leq N,K \leq 9$
  • $N$ and $K$ are integers.

Input

Input is given from Standard Input in the following format:

$N$ $K$

Output

Print the answer.


Sample Input 1

1 2

Sample Output 1

203

The condominium has two rooms $101$ and $102$. We have $101+102=203$.


Sample Input 2

3 3

Sample Output 2

1818

Input

题意翻译

某公寓有 $n$ 层,每层有 $k$ 间房间。大家知道,如果一个房间是第 $i$ 层第 $j$ 间,那么它的房间号就是一个形如 $i0j$ 的三位正整数。现在输入给出 $n$ 和 $k$ (保证 $n$ 和 $k$ 为一位正整数),请编程求出所有房间号之和并输出。

加入题单

上一题 下一题 算法标签: