UVA113 - Power of Cryptography

math, n'th root of an integer (can use builtin pow-function).