#include<stdio.h>
#include<math.h>
int main()
{
int x;
scanf("%d", &x);
while(x--){
int y;
scanf("%d", &y);
printf("%d\n", 100-y);
}
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8bWF0aC5oPgppbnQgbWFpbigpCnsKICAgIGludCB4OwogICAgc2NhbmYoIiVkIiwgJngpOwogICAgd2hpbGUoeC0tKXsKICAgICAgICBpbnQgeTsKICAgICAgICBzY2FuZigiJWQiLCAmeSk7CiAgICAgICAgcHJpbnRmKCIlZFxuIiwgMTAwLXkpOwogICAgfQogICAgcmV0dXJuIDA7Cn0K