#include <stdio.h>
int main()
{
int a,b,c,x,y;
for(a=0;a<2;a++)
for(b=0;b<2;b++)
for(c=0;c<2;c++)
for(x=0;x<2;x++)
for(y=0;y<2;y++)
printf("%d%d%d%d%d\n",a,b,c,x,y);
return 0;
}
#include <stdio.h>
int main()
{
int a,b,c,x,y;
for(a=0;a<2;a++)
for(b=0;b<2;b++)
for(c=0;c<2;c++)
for(x=0;x<2;x++)
for(y=0;y<2;y++)
printf("%d%d%d%d%d\n",a,b,c,x,y);
return 0;
}