#P466. 练84.1 2011n次方的后四位
练84.1 2011n次方的后四位
Description
Given a positive integer with a maximum length of digits, find the last four digits of .
Input Format
The first line contains a positive integer , representing the number of test cases ().
The next lines each contain a positive integer , where has at most digits.
Output Format
For each , output a single line containing the last four digits of . If the result has fewer than digits, remove any leading zeros.
Sample
3
5
28
7921051
81
5521