#include <bits/stdc++.h>
#define fast() ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define ll long long int
using namespace std;

int main() {
    fast();
    ll t;
    cin>>t;
    while(t--)			
    {
        ll n;
        cin>>n;
        int ans=0;
        for(int i=1;i<=100;i++)
        {
            if((100-n)*i%n==0)
            {
                ans=i;
                break;
            }
        }
        cout<<ans+(100-n)*ans/n<<endl;
    }   
}
