eolymp
Competitions

DSA Week 1

Function-10

Time limit 1 second
Memory limit 128 MiB

The function is given with nonnegative integer arguments m and n (mn):

Find the value of the function.

Input data

Two nonnegative integers n and m (0n, m20).

Output data

Print the value of the function f(m, n).

Examples

Input example #1
4 2
Output example #1
6