#include<iostream.h> int sumac(int n) { int S=0; while(n>0) { S=S+n%10; n=n/10; } return S; } int main () { int a,b,i; cin>>a>>b; for(i=a;i<=b;i++) if(i%sumac(i)==0) cout<<i<<" "; return 0; }