#include <iostream>
using namespace std;
void check(int s) {
int n, k, s1, s2;
k = 0;
s1 = s;
s2 = s;
while (s1 > 0) {
k++;
s1 = s1 / 10;
}
n = k;
s1 = 0;
while (n > 0) {
s1 += s%10;
s = s / 10;
n--;
if (s1 % k == 0) {
cout << s2 <<" ";
int main() {
int a,b;
cin >> a >> b;;
for (int i = a; i <= b; i++) {
check(i);
#include <iostream>
using namespace std;
void check(int s) {
int n, k, s1, s2;
k = 0;
s1 = s;
s2 = s;
while (s1 > 0) {
k++;
s1 = s1 / 10;
}
n = k;
s1 = 0;
while (n > 0) {
s1 += s%10;
s = s / 10;
n--;
}
if (s1 % k == 0) {
cout << s2 <<" ";
}
}
int main() {
int a,b;
cin >> a >> b;;
for (int i = a; i <= b; i++) {
check(i);
}
}