#include
int main()
{
int ans[100],tot=0,i;
for(i=100;i<1000;i++)
if(i%3==0&&(i%10==5||i/10%10==5||i/100==5))
{
ans[tot++]=i;
}
printf("%d\n",tot);
for(i=0;i
return 0;
}
int count=0,i,a0,a1,a2;
for(i=100;i<1000;i++)
{
a2=i/100;
a1=(i-a2*100)/10;
a0=i%10;
if((a0+a1+a2)%3==0 && (a0==5 || a1==5 || a2==5 ))
{
printf("%d\n",i);
count++;
}
printf("%d",count);