#abc144a. [abc144_a]9x9
[abc144_a]9x9
Problem Statement
Having learned the multiplication table, Takahashi can multiply two integers between and (inclusive) together. He cannot do any other calculation.
Given are two integers and .
If Takahashi can calculate , print the result; if he cannot, print -1
instead.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If Takahashi can calculate , print the result; if he cannot, print -1
.
Sample Input 1
2 5
Sample Output 1
10
.
Sample Input 2
5 10
Sample Output 2
-1
, but Takahashi cannot do this calculation, so print -1
instead.
Sample Input 3
9 9
Sample Output 3
81