#P175. 【例29.2】 幂的末尾
【例29.2】 幂的末尾
Description
What are the last three digits of ?
Input Format
Two positive integers and (, ).
Output Format
Output the last three digits of the power from highest to lowest digit, without any separators. If the power has fewer than three digits, pad with leading zeros.
Sample
7 2011743