# include "iostream.h"
# include "stdio.h"
main()
{
int a[8];
int i,j,k,l;
int t;
for(i=0;i<8;i++)
a[i]=i+1;
for(i=0;i<8-3;i++)
for(j=1;j<8-2;j++)
for(k=2;k<8-1;k++)
for(l=3;l<8;l++)
{
t=(t+1)%80;
if (t%6==0)
cout<<endl;
cout<<a[i]<<","<<a[j]<<","<<a[k]<<","<<a[l]<<" ";
if (t==0)
{cout<<"Press any key to continue!";
getchar();}
}
}