3960: Counting money

内存限制:128 MB 时间限制:1.000 S
评测方式:文本比较 命题人:
提交:8 解决:7

题目描述

Mike earned a lot of paper money through work-study.


Write a program to help him calculate how much money he earned.

输入

The input includes multiple lines of data.


Each line contains 2 positive integers a and b, representing the value and number of banknotes.


When both a and b are equal to 0, the input ends.

输出

The output is a positive integer, which is the total money earned by Mike.

样例输入 复制

1 1
2 2
5 1
100 1
0 0

样例输出 复制

110