ARITH2 - Simple Arithmetics II

题意翻译

在漫无目的地浏览时,彼得偶然发现了一个他年轻时用计算器解的老谜语。这是一种谜语,你在一个简易袖珍计算器中输入一堆数字和运算符,然后将其颠倒过来得到答案: 这些有很多不同的尺寸,但它们总是正好一英尺长。答案:$103 \times 103 \times 5$。 什么是用冰来保暖的?答案:$50 \times 40 \times 250+791$。 几分钟后,他发现了大量这样的谜语,他满怀兴奋地去解开它们。他把电脑屏幕颠倒过来…… ……却发现他的电脑上没有安装合理的计算器程序。

题目描述

While browsing aimlessly, Peter stumbled upon an old riddle he used to solve on his calculator when he was still young. It was the kind of a riddle where you punch in a bunch of numbers and operators into a simple pocket calculator and then turn it upside down to get the answer: _These come in many different sizes but they are always exactly one foot long. Answer: 103 \* 103 \* 5._ _What are made of ice to keep people warm? Answer: 50 \* 40 \* 250 + 791._ After a few minutes he found a large amount of such riddles and full of excitement he went to solve them. He turned his computer screen upside down... ... only to find out that he does not have a reasonable calculator program installed on his computer.

输入输出格式

输入格式


输出格式


输入输出样例

输入样例 #1

4

1 + 1 * 2 =

29 / 5 =

103 * 103 * 5 =

50 * 40 * 250 + 791 =

输出样例 #1

4
5
53045
500791