9991: ABC320 —— A - Leyland Number
[Creator : ]
Description
You are given positive integers $A$ and $B$.
Print the value $A^B+B^A$.
Print the value $A^B+B^A$.
Input
The input is given from Standard Input in the following format:
```
$A$ $B$
```
```
$A$ $B$
```
Output
Print the answer as an integer.
Constraints
- $2 \leq A \leq B \leq 9$
- All input values are integers.
- All input values are integers.
Sample 1 Input
2 8
Sample 1 Output
320
For $A=2,B=8$, we have $A^B=256,B^A=64$, so $A^B+B^A=320$.
Sample 2 Input
9 9
Sample 2 Output
774840978
Sample 3 Input
5 6
Sample 3 Output
23401