#include <iostream>
using namespace std;
int coldig(int n){
int cnt = 0;
while(n > 0){
cnt++;
n /= 10;
}
return cnt;
int sumdig(int n){
int sum = 0;
sum += n % 10;
return sum;
signed main(){
int a, b;
cin >> a >> b;
for(int i = a; i <= b; i++)
if(sumdig(i) % coldig(i) == 0)
cout << i << "\n";
#include <iostream>
using namespace std;
int coldig(int n){
int cnt = 0;
while(n > 0){
cnt++;
n /= 10;
}
return cnt;
}
int sumdig(int n){
int sum = 0;
while(n > 0){
sum += n % 10;
n /= 10;
}
return sum;
}
signed main(){
int a, b;
cin >> a >> b;
for(int i = a; i <= b; i++)
if(sumdig(i) % coldig(i) == 0)
cout << i << "\n";
}