Enter the terms as x to the power y mod n = res and it will automatically calculate the result.
x y mod n = res