传送门

很水的题目啦QAQ

 #include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<map>
#include<set>
#include<queue>
#include<vector>
#define INF 0x7f7f7f7f
#define pii pair<int,int>
#define ll long long
using namespace std; ll read(){
ll x=,f=;char ch=getchar();
while(ch<''||ch>''){if('-'==ch)f=-;ch=getchar();}
while(ch>=''&&ch<=''){x=x*+ch-'';ch=getchar();}
return x*f;
}
ll x;
int check(ll t){
ll ans=t;
while(t){
ans+=(t%);
t/=;
}
return (ans==x);
}
void solve(){
x=read();
for(ll i=x-;i<x;i++){
if(check(i)){
printf("%lld\n",i);
return;
}
}
printf("Stupid SiriusRen\n");
}
int main()
{
// freopen("data.in","r",stdin);
int T=read();
while(T--){
solve();
}
return ;
}