IE3 - Non-Square Free Numbers

A positive integer k is called square-free if k is not divisible by d2 for any d > 1

Input

The input contains one integer t denoting the number of test cases. Each of the following t lines contain a single integer n, 1 ≤ n ≤ 1010

Output

Your program should output one integer per test case, the n-th non-square-free number.

Example

Input:
1
10

Output:
27

Added by:acheron
Date:2013-10-20
Time limit:8s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64
Resource:ONTAK 2010

hide comments
2013-10-20 04:40:07 Robert Gerbicz
Almost duplication of: http://www.spoj.com/problems/SQFREE/ moved to tutorial.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.