#include<iostream>
using namespace std;
class arr{
int n;//the array's number;
//int i;
int a[100];
public:
arr()
{n=16;
}//ARR(int size):n(size){};
void delsame();//detele the like number;
void arrshow()
{int i;
for(i=0;i<n;i++)
{cout<<a[i]<<" ";
if((i+1)/5==0)
cout<<endl;
}
}
public: void input()
{/*cout<<"please input the (n) value:"<<endl;
cin>>n;*/
cout<<"please input 16 number:"<<endl;
for(int i=0;i<n;i++)
cin>>a[i];
}
};
/*ARR::ARR(int x[],int size)
{n=size;
for(int i=0;i<n;i++)
a[i]=x[i];
}*/
void arr::delsame()
{
int i,j;
for(i=0;i<n;i++){
//for(j=1;j<n;j++)
//j=i+1;
if(a[i]=a[i+1])
{for(j=i+1;j<n;j++)
a[j]=a[j+1];
n--;
i--;
}
}
int main()
{arr v; //define the class's object;
v.input();
v.show();
v.delsame();
v.show();
return 0;
}