#P466. 练84.1 2011n次方的后四位

练84.1 2011n次方的后四位

Description

Given a positive integer nn with a maximum length of 200200 digits, find the last four digits of 2011n2011^n.

Input Format

The first line contains a positive integer kk, representing the number of test cases (k200k ≤ 200).
The next kk lines each contain a positive integer nn, where nn has at most 200200 digits.

Output Format

For each nn, output a single line containing the last four digits of 2011n2011^n. If the result has fewer than 44 digits, remove any leading zeros.

Sample

3
5
28
792
1051
81
5521