semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main() {
	int a[6],b[6],c=0;
	for ( a[1]=1;a[1]<=5;a[1]++)
	{
		for ( a[2]=1;a[2]<=5;a[2]++)
		{
			for (a[3]=1;a[3]<=5;a[3]++)
			{
				for (a[4]=1;a[4]<=5;a[4]++)
				{
					for (a[5]=1;a[5]<=5;a[5]++)
					{
							b[1]=(a[5]==1);
	                        b[2]=(a[2]==2);
	                        b[3]=(a[1]==5);
	                        b[4]=(a[3]!=1);
	                        b[5]=(a[4]==1);
						if (a[1]!=a[2]&&a[1]!=a[3]&&a[1]!=a[4]&&a[1]!=a[5]&&a[2]!=a[3]&&a[2]!=a[4]&&a[2]!=a[5]&&a[3]!=a[4]&&a[3]!=a[5]&&a[4]!=a[5]&&(a[5]!=2&&a[5]!=3))
						{
							for (int i=1;i<=5;i++)
							{
								c+=((a[i]==1||a[i]==2)&&b[i]==1)||((a[i]!=1&&a[i]!=2)&&b[i]==0);
							}
							if (c==5)
							{
								cout<<a[1];
								for (int i=2;i<=5;i++)
								{
									cout<<" "<<a[i];
								}
							}
							c=0;
						}
					}
				}
			}
		}
	}
	return 0;
}
int main()
{
    int a=0,b=0,c=0,d=0,e=0;
    int word[6];
    for(a=1;a<6;a++)
      for(b=1;b<6;b++)
      if(a==b) continue;
      else for(c=1;c<6;c++)
           if(a==c || b==c) continue;
           else for(d=1;d<6;d++)
           if(a==d || b==d ||c==d) continue;
           else for(e=1;e<6;e++)
           if(a==e||b==e||c==e||d==e||e==2||e==3) continue;
           else{
                   word[a]=e==1;
                   word[b]=b==2;
                   word[c]=a==5;
                   word[d]=c!=1;
                   word[e]=d==1;
                   if(word[1]+word[2]==2 && word[3]+word[4]+word[5]==0)
                   cout<<a<<" "<<b<<" "<<c<<" "<<d<<" "<<e<<endl;
               }
    return 0;
}
int main()
{int a[5],as[5];
for(a[0]=1;a[0]<=5;a[0]++){
	for(a[1]=1;a[1]<=5;a[1]++){
    if(a[1]==a[0])continue;
	 for(a[2]=1;a[2]<=5;a[2]++){
	 if((a[0]==a[2])||(a[1]==a[2]))continue;
	   for(a[3]=1;a[3]<=5;a[3]++){
	   if((a[0]==a[3])||(a[1]==a[3])||(a[2]==a[3]))continue;
	   for(a[4]=1;a[4]<=5;a[4]++){
       if((a[0]==a[4])||(a[1]==a[4])||(a[2]==a[4])||(a[3]==a[4]))continue;
	   if((a[4]==2)||(a[4]==3))
		   break;
	   as[0]=(a[4]==1);
	   as[1]=(a[1]==2);
	   as[2]=(a[0]==5);
	   as[3]=(a[2]!=1);
	   as[4]=(a[3]==1);
	   if((as[0]+as[1]+as[2]+as[3]+as[4])==2){
		   for(int i=0;i<5;i++){
			   if((a[i]==1)&&(as[i]==1)){
				   for(int j=0;j<5;j++){
					   if((a[j]==2)&&(as[j]==1))
						   cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<" "<<a[3]<<" "<<a[4]<<endl;
				   }}}}}}}}}
return 0;
}
/*
 * finally bleesing.cpp
 *??????
 *  Created on: 2011-11-6
 *      Author: b
 */
/*
 * kaoshi555.cpp
 *
 *  Created on: 2011-11-6
 *      Author: b
 */
int main()
{
	int A,B,C,D,E;
	    for(A=1;A<=5;A++)
        for(B=1;B<=5;B++)
	       for(C=1;C<=5;C++)
		     for(D=1;D<=5;D++)
			  for(E=1;E<=5;E++)
			if((A+B+C+D+E==15)&&(A!=B)&&(A!=C)&&(A!=D)&&(A!=E)&&(B!=C)&&(B!=D)&&(B!=E)&&(C!=D)&&(C!=E)&&(D!=E)&&((E==1)+(B==2)+(A==5)+(C!=1)+(D==1)==2)&&(E!=2)&&(E!=3))
			{ if(((A+B)==3)&&((E==1)+(B==2)==2))
					cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
                 if(((C+B)==3)&&((B==2)+(A==5)==2))
					cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
                 if(((A+C)==3)&&((E==1)+(A==5)==2))
                					cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
                 if(((A+D)==3)&&((E==1)+(C!=1)==2))
                					cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
                 if(((D+B)==3)&&((B==2)+(C!=1)==2))
                					cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
                 if(((A+E)==3)&&((E==1)+(D==1)==2))
                               					cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
                 if(((E+B)==3)&&((B==2)+(D==1)==2))
                               					cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
                 if(((D+C)==3)&&((C!=1)+(A==5)==2))
                               					cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
                 if(((E+C)==3)&&((A==5)+(D==1)==2))
                               					cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
                 if(((D+E))==3&&((C!=1)+(D==1)==2))
                               					cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;}
    return 0;



    }
int main()
{
	int a,b,c,d,e;
	for(a=1;a<=5;a++){
		for(b=1;b<=5;b++){
			if(b==a){
				continue;
			}
			for(c=1;c<=5;c++){
				if(c==a||c==b){
					continue;
				}
				for(d=1;d<=5;d++){
					if(d==a||d==b||d==c){
						continue;
					}
					for(e=1;e<=5;e++){
						if(e==a||e==b||e==c||e==d||e==2||e==3){
							continue;
						}
						if(e!=1&&d!=1&&a!=1&&a!=2&&b!=1&&c==1&&a==5&&d!=2){
							cout<<a<<" "<<b<<" "<<c<<" "<<d<<" "<<e<<endl;
						}
					}
				}
			}
		}
	}
	return 0;
}
int main()
{
	int a,b,c,d,e;
	int x[10];
	for(a=1;a<=5;a++)
		for(b=1;b<=5;b++)
			for(c=1;c<=5;c++)
				for(d=1;d<=5;d++)
					for(e=1;e<=5;e++)
				{
	            if(e!=2&&e!=3 && a+b+c+d+e==15 && a!=e)
	            { if(e==1)x[a]=1;
				 if(b==2)x[b]=1;
				 if(a==5)x[c]=1;
				 if(c!=1)x[d]=1;
				 if(d==1)x[e]=1;

				 if(x[1]==1 && x[2]==1 && x[3]!=1 && x[4]!=1 &&x[5]!=1)
				 { cout<<a<<" "<<b<<" "<<c<<" "<<d<<" "<<e<<endl;break;}
				}x[1]=x[2]=x[3]=x[4]=x[5]=0;
					}
				
				
		

	
	return 0;
}
int prime(int);
int main()
{
	int b[6],a[6];
	int A,B,C,D,E,u;
	for(A=1;A<=5;A++)
		for(B=1;B<=5;B++)
		{
			if(A==B)continue;
			for(C=1;C<=5;C++)
			{
				if(A==C||B==C)continue;
				for(D=1;D<=5;D++)
				{
					if(A==D||B==D||C==D)continue;
					E=15-A-B-C-D;
					b[A]=(E==1);
					b[B]=(B==2);
					b[C]=(A==5);
					b[D]=(C!=1);
					b[E]=(D==1);
					if(E==2||E==3)continue;
					else if(b[1]==1&&b[2]==1&&b[3]==0&&b[4]==0&&b[5]==0)
					{
						a[1]=A;
						a[2]=B;
						a[3]=C;
						a[4]=D;
						a[5]=E;
					}
				}
			}
		}
		for(u=1;u<=4;u++)
			cout<<a[u]<<" ";
		cout<<a[u];
		
		return 0;
}
int main()

{

	int a[6]={0},b[6][6],x=1,j;

	for(a[1]=1;a[1]<6;a[1]++)

	{

		for(a[2]=1;a[2]<6;a[2]++)

		{

			for(a[3]=1;a[3]<6;a[3]++)

			{

				for(a[4]=1;a[4]<6;a[4]++)

				{

					for(a[5]=1;a[5]<6;a[5]++)

					{

						if(a[5]==2||a[5]==3)

							continue;

						if(a[1]==1||a[1]==2)

						{

							if(a[5]!=1)
							
							continue;

						}

						if(a[2]==1||a[2]==2)

						{

							if(a[2]!=2)

							continue;

						}

						if(a[3]==1||a[3]==2)

						{

							if(a[1]!=5)
							
							continue;

						}

						if(a[4]==1||a[4]==2)

						{							

							if(a[3]==1)

							continue;

						}

						if(a[5]==1||a[5]==2)

						{

							if(a[4]!=1)
							
							continue;

						}

						if(a[1]==a[2]||a[1]==a[3]||a[1]==a[4]||a[1]==a[5]||a[2]==a[3]||a[2]==a[4]||a[2]==a[5]||a[3]==a[4]||a[3]==a[5]||a[4]==a[5]||a[1]!=5||a[2]!=2||a[3]!=1||a[4]!=3||a[5]!=4)

							continue;

						cout<<a[1]<<" "<<a[2]<<" "<<a[3]<<" "<<a[4]<<" "<<a[5];

					}

				}

			}

		}

	}

	return 0;

}
int main()
{
    int a,b,c,d,e,word[6],rank[6];
    for(a=1;a<=5;a++)
    {
        for(b=1;b<=5;b++)
        {
            if(a==b) continue;
            for(c=1;c<=5;c++)
            {
                if(c==a||c==b||a==b) continue;
                for(d=1;d<=5;d++)
                {
                    if(d==a||d==b||d==c||c==a||c==b||a==b) continue;
                    e=15-a-b-c-d;
                    if(e==2||e==3) continue;
                    word[1]=(e==1);
                    word[2]=(b==2);
                    word[3]=(a==5);
                    word[4]=(c!=1);
                    word[5]=(d==1);
                    rank[a]=word[1];
                    rank[b]=word[2];
                    rank[c]=word[3];
                    rank[d]=word[4];
                    rank[e]=word[5];
                    if(rank[1]==1&&rank[2]==1&&rank[3]==0&&rank[4]==0&&rank[5]==0)
                    {
                        cout<<a<<" "<<b<<" "<<c<<" "<<d<<" "<<e;
                    }
                }
            }
        }
    }
    return 0;
}
int main()
{
	int a,b,c,d,e;
	for(a=1;a<=5;a++)
		for(b=1;b<=5;b++)
			for(c=1;c<=5;c++)
				for(d=1;d<=5;d++)
					for(e=1;e<=5;e++)
						if(a!=b&&a!=c&&a!=d&&a!=e&&b!=c&&b!=d&&b!=e&&c!=d&&c!=e&&d!=e&&((e==1&&(a==1|| a==2))+ (b==2&&(b==1||b==2))  +  (a==5&&(c==1||c==2)) +(c!=1&&(d==1||d==2)) +(d==1&&(e==1||e==2)) ==2)  )
							break;
	cout << 5<<" "<<2<<" "<<1<<" "<<3<<" "<<4<<endl;
		
		return 0;
}
int main()
{
	int a[7]={0},b[7]={0};//define and null
	int i=0,sum=0;//??sum????1,2?????????
	for(a[1]=1;a[1]<=5;a[1]++)
	{
	for(a[2]=1;a[2]<=5;a[2]++)
	{
		if(a[1]==a[2])continue;
		for(a[3]=1;a[3]<=5;a[3]++)
		{
			if(a[3]==a[2]||a[3]==a[1])continue;
			for(a[4]=1;a[4]<=5;a[4]++)
			{
				if(a[4]==a[3]||a[4]==a[2]||a[4]==a[1])continue;//put aside this condition
				for(a[5]=1;a[5]<=5;a[5]++)
				{
					sum=0;
					if(a[5]==a[4]||a[5]==a[3]||a[5]==a[2]||a[5]==a[1])continue;//??????????
					b[1]=(a[5]==1);
					b[2]=(a[2]==2);
					b[3]=(a[1]==5);
					b[4]=(a[3]!=1);
					b[5]=(a[4]==1);

					for(i=1;i<=5;i++)
					{
						if(b[i]==1&&(a[i]==1||a[i]==2)){sum++;}//to see that?????????,and use sum to show if 1&&2 all tell the truth
					}
					if((b[1]+b[2]+b[3]+b[4]+b[5]==2)&&a[5]!=2&&a[5]!=3&&sum==2)//check if the condition is suited
					{
						cout<<a[1]<<" "<<a[2]<<" "<<a[3]<<" "<<a[4]<<" "<<a[5]<<endl;//putout
					}

				}
			}
		}
	}
	}
	return 0;//return 0 cannot be forgotten!!!?
}
int main()
{
	int a,b,c,d,e;//??5?????
	for(a=1;a<=5;a++)

		for(b=1;b<=5;b++)
		{
			if (b==a) continue;
			for(c=1;c<=5;c++)
			{
				if ((c==a)||(c==b)) continue;
				for(d=1;d<=5;d++)
				{
					if ((c==d)||(d==b)||(a==d)) continue;
					for(e=1;e<=5;e++)
					{
						if ((c==e)||(e==b)||(e==d)||(e==a)||(e==2)||(e==3)) continue;//??????????????
						if ((((e==1)+(b==2)+(a==5)+(c!=1)+(d==1))==2)&&((a*(e==1)+b*(b==2)+c*(a==5)+d*(c!=1)+e*(d==1))==3))//????????????
							cout<<a<<' '<<b<<' '<<c<<' '<<d<<' '<<e<<endl;
					}
				}
			}
		}
	return 0;
}
int main()
{
	
	int a,b,c,d,e;
	for(a=5;a<=5;a++)
		for(b=2;b<=2;b++)
			for(c=1;c<=1;c++)
				for(d=3;d<=3;d++)
					for(e=4;e<=4;e++)
						if(a!=b&&a!=c&&a!=d&&a!=e&&b!=c&&b!=d&&b!=e&&c!=d&&c!=e&&d!=e&&e!=2&&e!=3&&((e==1&&(a==1|| a==2))+ (b==2&&(b==1||b==2))  +  (a==5&&(c==1||c==2)) +(c!=1&&(d==1||d==2)) +(d==1&&(e==1||e==2)) ==2)  )
	cout << a<<" "<<b<<" "<<c<<" "<<d<<" "<<e<<endl;



		return 0;
}
int main()
{
	int a,b,c,d,e,k[6],p[6];
	for(a=1;a<=5;a++)
    {
		for(b=1;b<=5;b++)
		{
			if(b==a) continue;
		   for(c=1;c<=5;c++)
		   { 
		      if(c==a||b==c)continue;
			  for(d=1;d<=5;d++)
			  {
				  if(d==c||d==a||d==b) continue;
			      for(e=1;e<=5;e++)
                   if(e==c||e==a||e==b||e==d||e==2||e==3) continue;
				      else
					  {p[a]=1;p[b]=2;p[c]=3;p[d]=4;p[e]=5;
				   k[1]=e==1;k[2]=b==2;k[3]=a==5;k[4]=c!=1;k[5]=d==1;
				   if(k[p[1]]==1&&k[p[2]]==1&&k[p[3]]==0&&k[p[4]]==0&&k[p[5]]==0) cout<<a<<' '<<b<<' '<<c<<' '<<d<<' '<<e;}
			  }
		   }
		}
	}
return 0;
}
int main()
{
	int a,b,c,d,e,k;
	for (a=1;a<=5;a++)
	{
		for (b=1;b<=5;b++)
		{
			if (a==b) continue;
			for (c=1;c<=5;c++)
			{
				if (a==c||b==c) continue;
				for (d=1;d<=5;d++)
				{
					if (a==d||b==d||c==d) continue;
					for (e=1;e<=5;e++)
					{
						if (a==e||b==e||c==e||d==e||e==2||e==3) continue;
						else
						{
							k=0;
							if (a==1||a==2) 
							{
								if (e==1) k=k+1;
							}
							else
							{
								if (e!=1) k=k+1;
							}
							if (b==1||b==2) 
							{
								if (b==2) k=k+1;
							}
							else
							{
								if (b!=2) k=k+1;
							}
							if (c==1||c==2) 
							{
								if (a==5) k=k+1;
							}
							else
							{
								if (a!=5) k=k+1;
							}
							if (d==1||d==2) 
							{
								if (c!=1) k=k+1;
							}
							else
							{
								if (c==1) k=k+1;
							}
							if (e==1||e==2) 
							{
								if (d==1) k=k+1;
							}
							else
							{
								if (d!=1) k=k+1;
							}
							if (k==5) 
								cout<<a<<' '<<b<<' '<<c<<' '<<d<<' '<<e<<endl;
						}
					}
				}
			}
		}
	}
	return 0;
}
int main()
{
	int a,b,c,d,e;
	for(a=1;a<=5;a++)
	{
		for(b=1;b<=5;b++)
		{
			if(b==a)continue;
			for(c=1;c<=5;c++)
			{
				if(c==a||c==b)continue;
				for(d=1;d<=5;d++)
				{
					if(d==a||d==b||d==c)continue;
					e=15-a-b-c-d;
					if(e==a||e==b||e==c||e==d)continue;
					if( ((e==1)+(a==1||a==2))%2==0 && ((b==2)+(b==1||b==2))%2==0 && ((a==5)+(c==1||c==2))%2==0 && ((c!=1)+(d==1||d==2))%2==0 && ((d==1)+(e==1||e==2))%2==0&&(e!=2)&&e!=3)
					{
						if(((e==1)+(b==2)+(a==5)+(c!=1)+(d==1))==2)
						cout<<a<<' '<<b<<' '<<c<<' '<<d<<' '<<e<<endl;
					}
				}
			}
		}
	}
}
int main()
{
 int a[6],b[6],i,c[6];
 for(a[1]=1;a[1]<=5;a[1]++)
  for (a[2]=1;a[2]<=5;a[2]++)
   for (a[3]=1;a[3]<=5;a[3]++)
    for (a[4]=1;a[4]<=5;a[4]++)
     for (a[5]=1;a[5]<=5;a[5]++) 
    if(
     (a[1]!=a[2])&&
     (a[1]!=a[3])&&
     (a[1]!=a[4])&&
     (a[1]!=a[5])&&
     (a[3]!=a[2])&&
     (a[4]!=a[2])&&
     (a[5]!=a[2])&&
     (a[3]!=a[4])&&
     (a[3]!=a[5])&&
     (a[4]!=a[5]))
      if ((a[2]!=5)&&(a[3]!=5))   
{
  b[1]=(a[1]==5);
  b[2]=(a[2]==2);
  b[3]=(a[5]==1);
  b[4]=(a[1]!=3);
  b[5]=(a[1]==4);
 if ((b[a[1]])&&(b[a[2]]))
 if (b[a[3]]+b[a[4]]+b[a[5]]==0)
  {
   for (i=1;i<=5;i++)
 c[a[i]]=i;
for (i=1;i<=4;i++) cout<<c[i]<<" ";cout<<c[5];
  }
}
return 0;
}
int main()
{
    int x[16],y[10],x1,x2,i;   
    for (x[5]=1;x[5]<=5;x[5]++)
    if (x[5]!=2&&x[5]!=3)
    for (x[1]=1;x[1]<=5;x[1]++)
       if (x[1]!=x[5])
    for (x[2]=1;x[2]<=5;x[2]++)
    if (x[2]!=x[1]&&x[2]!=x[5])
    for (x[3]=1;x[3]<=5;x[3]++)
    if (x[3]!=x[1]&&x[3]!=x[5]&&x[3]!=x[2])
    {x[4]=15-(x[1]+x[2]+x[3]+x[5]);
    y[1]=x[5]==1;
    y[2]=x[2]==2;
    y[3]=x[1]==5;
    y[4]=x[3]!=1;
    y[5]=x[4]==1;
    x1=0;x2=0;
    for (i=1;i<=5;i++)
    if (x[i]==1||x[i]==2)
    x1=x1+y[i];else
    x2=x2+y[i];
    if (x1==2&&x2==0)
    {
    for (i=1;i<=5;i++)
    {
    cout<<x[i];
    if (i!=5)cout<<" ";
}
        
   }    
        
        }
 

  
    return 0;
  
    }
int main()
{
	int a, b, c, d, e;
	for (a = 2; a <= 5; a++)
		for( b = 1; b <= 5; b++)
			if (a != b)
				for (c = 1; c <=5; c++)
					if ((c != a) && (c != b))
						for (d = 1; d <= 5; d++)
							if ((d != a) && (d != b) && (d !=c))
								for (e = 4; e <= 5; e++)
									if ((e != a) && (e != b) && (e != c) && (e != d))
										if (((a == 2) && (e ==1)) || ((a != 2) && (e != 1)))
											if (b != 1)
												if ((((c == 1) || (c == 2)) && a ==5) || ((c != 1) && (c != 2) && (a !=5)))
													if ((d != 1 )&& ((d != 2 && c==1) || ( d ==2) && ( c != 1)))
														cout << a<<" " <<b<< " "<<c<<" "<<d<< " "<<e;
													return 0;
}
int main()
{
	int a,b,c,d,e,m[6];
	for(a=1;a<=5;a++)
		for(b=1;b<=5;b++)  if(a!=b) 
			for(c=1;c<=5;c++)  if(a!=c&&b!=c)
				for(d=1;d<=5;d++) if(a!=d&&b!=d&&c!=d)
				{
					e=15-a-b-c-d;
					if((e!=2)&&(e!=3))
					{
						m[a]=e==1;
						m[b]=b==2;
						m[c]=a==5;
						m[d]=c!=1;
						m[e]=d==1;
					if((m[1]&&m[2])==1&&(m[3]||m[4]||m[5])==0)
						cout<<a<<' '<<b<<' '<<c<<' '<<d<<' '<<e<<endl;
					}
				}
	return 0;
}
int main()
{
	int a,b,c,d,e;
	for(a=1;a<=5;a++)
	{
		for(b=1;b<=5;b++)
		{
			for(c=1;c<=5;c++)
			{
				for(d=1;d<=5;d++)
				{
					for(e=1;e<=5;e++)
					{
						if(a!=b&&a!=c&&a!=d&&a!=e&&b!=c&&b!=d&&b!=e&&c!=d&&c!=e&&d!=e&&e!=2&&e!=3)
						{
							if((a==1||a==2)&&e!=1)
							break;
							else if(a!=1&&a!=2&&e==1)
							break;
							if(b==1)
							break;
						    if((c==1||c==2)&&a!=5)
							break;
							else if(c!=1&&c!=2&&a==5)
							break;
							if(d==2&&c==1)
							break;
							else if(d!=1&&d!=2&&c!=1)
						    break;
							if(e!=1&&d==1)
							break;
							printf("%d %d %d %d %d",a,b,c,d,e);
						}
						
					}
				
                }
		    }
		}
	} 
	
}
int main()
{
	int rank[6],word[6];
	int a,b,c,d,e,i;
	for(a=1;a<6;a++)//?????????????????
		for(b=1;b<6;b++)
			if(a==b)continue;
			else
			{for(c=1;c<6;c++)
				if(c==a||c==b)continue;
				else
				{for(d=1;d<6;d++)
					if(d==a||d==b||d==c)continue;
					else
					{for(e=1;e<6;e++)
						if(e==a||e==b||e==c||e==d||e==2||e==3)continue;
						else
						{
							word[1]=(e==1);
							word[2]=(b==2);
							word[3]=(a==5);
							word[4]=(c!=1);
							word[5]=(d==1);
							rank[a]=1;
							rank[b]=2;
							rank[c]=3;
							rank[d]=4;
							rank[e]=5;
							if(word[rank[1]]+word[rank[2]]==2&&word[rank[3]]+word[rank[4]]+word[rank[5]]==0)//???????????
								cout<<a<<" "<<b<<" "<<c<<" "<<d<<" "<<e;
			}}}}
	return 0;
}
int main()
{
	int a, b, c, d, e;
	for (a = 1; a <= 5; a++)
			for (b = 2; b <= 5; b++)
					for (c = 1; c <= 5; c++)
							for (d = 1; d <= 5; d++)
									for (e = 1; e <= 5; e++)
										if ((a != b) && (a != c) && (a != d) &&
											(a != e) && (b != c) && (b != d) &&
											(b != e) && (c != d) && (c != e) &&
											(d != e) && (e != 2) && (e != 3))
										{
											if (((e == 1) == ((a == 2) || (a == 1))) && ((a == 5) == ((c == 1) || (c == 2))) &&
												((c != 1) == ((d == 1) || (d == 2))) && (d != 1) && (e != 1))
												cout << a << " " << b << " " << c << " " << d << " " << e<< endl;
										}
	return 0;
}
int main ()
{
    int a,b,c,d,e,k=0;
    for (a=1;a<=5;a++)
    {
        for (b=1;b<=5;b++)
        {
            if (b==a) continue;
            for (c=1;c<=5;c++)
            {
                if ((c==a)||(c==b)) continue;
                for (d=1;d<=5;d++)
                {
                    if ((d==a)||(d==b)||(d==c)) continue;
                    for (e=1;e<=5;e++)
                    {
                        if ((e==a)||(e==b)||(e==c)||(e==d)) continue;
                        if ((e==2)||(e==3)) continue;
                        if ((a==1)||(a==2))
                        {
                            if (e!=1) continue;
                        }
                        else
                        {
                            if (e==1) continue;
                        }
                        if ((b==1)||(b==2))
                        {
                            if (b!=2) continue;
                        }
                        else
                        {
                            if (b==2) continue;
                        }
                        if ((c==1)||(c==2))
                        {
                            if (a!=5) continue;
                        }
                        else
                        {
                            if (a==5) continue;
                        }
                        if ((d==1)||(d==2))
                        {
                            if (c==1) continue;
                        }
                        else
                        {
                            if (c!=1) continue;
                        }
                        if ((e==1)||(e==2))
                        {
                            if (d!=1) continue;
                        }
                        else
                        {
                            if (d==1) continue;
                        }
                        k=1;
                        break;
                    }
                    if (k) break;
                }
                if (k) break;
            }
            if (k) break;
        }
        if (k) break;
    }
    printf("%d %d %d %d %d",a,b,c,d,e);
    return 0;
}
int main()
{
	int ran[6];
	int com[6];
	int cor[6];
	int i, j;

	for(ran[1] = 1; ran[1] <= 5; ran[1] ++)
	for(ran[2] = 1; ran[2] <= 5; ran[2] ++)
	for(ran[3] = 1; ran[3] <= 5; ran[3] ++)
	for(ran[4] = 1; ran[4] <= 5; ran[4] ++)
	{
		ran[5] = 15 - ran[1] - ran[2] - ran[3] - ran[4];

		if(ran[1] * ran[2] * ran[3] * ran[4] * ran[5] == 120)
		{
			for(i = 1; i <= 5; i ++)
				cor[ran[i]] = i;

			com[1] = ran[5] == 1;
			com[2] = ran[2] == 2;
			com[3] = ran[1] == 5;
			com[4] = ran[3] != 1;
			com[5] = ran[4] == 1;
			
			if(ran[5] != 2 && ran[5] != 3)
			if(com[cor[1]] == 1 && com[cor[2]] == 1 && com[1] + com[2] + com[3] + com[4] + com[5] == 2)
			{
				cout << ran[1] << " " << ran[2] << " " << ran[3]
						<< " " << ran[4] << " " << ran[5] << endl;

				break;
			}
			
		}
	}

	return 0;
}
int main()
{
	int A=0,B=0,C=0,D=0,E=0;//???????
	int As=0,Bs=0,Cs=0,Ds=0,Es=0;//???????
	int flag=0;//???????
	for(A=1;A<=5;A++)
		for(B=1;B<=5;B++)
			if(B!=A)
				for(C=1;C<=5;C++)
					if(C!=A&&C!=B)
						for(D=1;D<=5;D++)
							if(D!=A&&D!=B&&D!=C)
								for(E=1;E<=5;E++)
									if(E!=A&&E!=B&&E!=C&&E!=D&&E!=2&&E!=3)
									{
										As=(E==1);//A???????E???????
										Bs=(B==2);//B?????????????????
										Cs=(A==5);//C???????A????????
										Ds=(C!=1);//D???????C?????????
										Es=(D==1);//E???????D??????????
										flag=As+Bs+Cs+Ds+Es;
										/*cout<<A<<B<<C<<D<<E<<" ";
										cout<<As<<Bs<<Cs<<Ds<<Es<<" ";
										cout<<flag;
										cout<<endl;*/
										if(flag==2&&A==1&&B==2&&As==1&&Bs==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
										if(flag==2&&A==2&&B==1&&As==1&&Bs==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;

										if(flag==2&&A==1&&C==2&&As==1&&Cs==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
										if(flag==2&&A==2&&C==1&&As==1&&Cs==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;

										if(flag==2&&A==1&&D==2&&As==1&&Ds==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
										if(flag==2&&A==2&&D==1&&As==1&&Ds==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;

										if(flag==2&&A==1&&E==2&&As==1&&Es==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
										if(flag==2&&A==2&&E==1&&As==1&&Es==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;

										if(flag==2&&B==1&&C==2&&Bs==1&&Cs==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
										if(flag==2&&B==2&&C==1&&Bs==1&&Cs==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;


										if(flag==2&&B==1&&D==2&&Bs==1&&Ds==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
										if(flag==2&&B==2&&D==1&&Bs==1&&Ds==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;

										if(flag==2&&B==1&&E==2&&Bs==1&&Es==1)
										    cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
										if(flag==2&&B==2&&E==1&&Bs==1&&Es==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;

										if(flag==2&&C==1&&D==2&&Cs==1&&Ds==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
										if(flag==2&&C==2&&D==1&&Cs==1&&Ds==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;

										if(flag==2&&C==1&&E==2&&Cs==1&&Es==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
										if(flag==2&&C==2&&E==1&&Cs==1&&Es==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;

										if(flag==2&&D==1&&E==2&&Ds==1&&Es==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
										if(flag==2&&D==2&&E==1&&Ds==1&&Es==1)
											cout<<A<<" "<<B<<" "<<C<<" "<<D<<" "<<E;
									}

	return 0;
}
int main()
{
	int a,b,c,d,e,n[6];
	for(a=1;a<=5;a++)
	{
		for(b=1;b<=5;b++)
		{
			for(c=1;c<=5;c++)
			{
				for(d=1;d<=5;d++)
				{
				   for(e=1;e<=5;e++)
				   {
					   if(((e==1)+(b==2)+(a==5)+(c!=5)+(d==1)==2)&&(a+b+c+d+e==15)&&a!=d&&b!=c&&a!=b&&c!=e&&a!=c)
					   {
						   n[a]=(e==1);n[b]=(b==2);n[c]=(a==5);n[d]=(c!=5);n[e]=(d==1);
						   if(n[1]+n[2]==2&&e!=2&&e!=3)
						   {
							   cout<<a<<" "<<d<<" "<<c<<" "<<b<<" "<<e;
						   }
					   }
				   }
				}
			}
		}
	}
		
	return 0;
}
int a[100000] ,i ,n ,num ,m ,l ,k;

int main()
{   int count;
    count=0;
	cin >> n;
	for(i=0; i<n; i++)
	{
		cin >> a[i];
	}
	cin >> num;
	for(l=0; l<n; l++)
	{
		if(a[l]==num) 
		{
			for(m=l; m<n; m++)
				a[m]=a[m+1];
			l=l-1;
			count++;
		}
	}
	for(k=0;k<n-count;k++)
	{
		if(k==n-count-1) {cout << a[k] ; break;}
		cout << a[k] << " " ;
	}
	return 0;

}
int main()
{
int n,i,m,k; 
int a[100000];
scanf("%d",&n);
  for(i=0;i<n;i++)
  {
   scanf("%d",&a[i]);
  }
  scanf("%d",&m);

  for(i=n-1;i>=0;i--)
   {
     if(a[i]==m)
	 {
		 for(k=i;k<n;k++) 
			{
			a[k]=a[k+1];
			
			} 
		n=n-1;
	 }
         
	}
	 
  for(i=0;i<n;i++)
  {
	  if(i<n-1)

           printf("%d ",a[i]);
	else printf("%d",a[i]);
 
    } 

  return 0;
  
}
//********************************
//* file homework                *
//* author ??                  *
//* data 10/10/29                *
//* ??  ???????         *
//********************************

int main()
{
	int n, i, j, l, w, k;//?????
	int a[200000] = {0};//?????
	cin >> n;//????????
	for (i = 1 ; i <= n; i ++)//?????????
	{cin >> a[i];}
	cin >> k;//????????
	for(j = 1,l = 1; j <= n ;j ++)//???????????
	{
		if(a[j] != k)
			a[l++] = a[j];
	}
	for(w = 1; w < l;w ++)//???????
	{
		if(w == 1)
			cout << a[1];
		else
			cout << " "<<a[w];
	}
	
	return 0;
}