#include <iostream>
using namespace std;
int main ()
{
int i,FN, N;
cout<<"Please enter first number:";
cin>>FN;
cout<<"Please enter second number:";
cin>>N;
if (FN>=N)
{
cout<<"ERROR ENTER"<<endl;
system("pause");
return 0;
}
for(i=FN;i<=N;i++)
{
if(i%7==0)
{
cout<<i<<endl;
}
else
{
int temp = i;
while(temp>0){
if(temp%10==7)
{
cout<<i<<endl;
break;
}
temp = temp /10;
}
}
}
system("pause");
}