Write a program that computes the value of the function
Two positive integers n and m such that 1 \leq n, m \leq 10^{18}.
Print the value of the function f(m, n).
Example 1
Example 2