I'll never leave you
On his way home from school, Herman often heard the swirling song "I'll never leave you" by Alexander Losev playing from the windows of the apartments. He is so used to it that he can count by ear the number of windows from which the song is playing.
The song "I'll never leave you" always plays from the window of Herman's apartment. He has memorized that his apartment is the -th apartment where the song is playing, and that is a contractible fraction for some integer , and the value of is the minimum possible.
You must find out, given a given number , what will be Hermann's apartment.
Input
The first line contains an integer — the number of test cases.
This is followed by lines, each containing one integer .
Output
The output contains lines. Each line contains a single integer — the answer to the problem.