Problem F
Exponial

-
Exponentiation:
. -
Factorials:
.
In this problem we look at their lesser-known love-child the
exponial, which is an operation defined for all
positive integers
For example,
Since the exponials are really big, they can be a bit
unwieldy to work with. Therefore we would like you to write a
program which computes
Input
The input consists of two integers
Output
Output a single integer, the value of
Sample Input 1 | Sample Output 1 |
---|---|
2 42 |
2 |
Sample Input 2 | Sample Output 2 |
---|---|
5 123456789 |
16317634 |
Sample Input 3 | Sample Output 3 |
---|---|
94 265 |
39 |