#include using namespace std; using ll=long long; const ll MOD=(ll)1e9+7; const ll INF=(ll)1e18+10; const double PI=acos(-1); template bool chmax(T &a, const T &b) { if (a bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; } int dy[]={-1,1,0,0}; int dx[]={0,0,-1,1}; void solve(int cn) { int N; cin>>N; int a[100]={0}; a[0]=N; for (int i = 0; i < 99; ++i) { while(a[i]>0){ a[i+1]+=a[i]%10; a[i]/=10; } } cout<>N; for(int i=0;i