Rosetta Problems

A^B^C

https://atcoder.jp/contests/arc113/tasks/arc113_b