COROANA TE ROG!!!
#include<iostream>
using namespace std;
int suma(int x){
int s=0;
do{
s+=x%10;
x/=10;
}while(x!=0);
return s;
}
int main(){
int n, v[101];
cin>>n;
for(int i=1;i<=n;i++) cin>>v[i];
for(int i=1;i<=n;i+=2) if(suma(v[i])==v[i+1]) cout<<v[i]<<' '<<v[i+1]<<", ";
return 0;
}