Problems
10007 - Arithmetic Power Game
SUBMIT PROBLEM

Arithmetic Power Game

Time Limit: 1 sec

 

The Problem

Karim likes to play with power arithmetic operations. He makes a challenge to play the following game with you.

 

Result = XY + YX

 

Will you accept it?

 

The Input

Input file contains a series of line. Each line consists of two integers X and Y separated by a blank space, where 0< X < 14 and 0 < Y < 14. Input is terminated by EOF.

 

The Output

For each line of input, you have to print the result in a separate line.

 

Sample Input

1 1

2 3

 

Sample Output

2

17

 

 

 

[College Level]

Inter School & College Programming Contest (ISCPC) 2015 

Problem Setter: Mahbubur Rahman