#include <iostream>
#include <iomanip>
#include <cstdlib>
using namespace std;

int main() {
	int Array[20];
	srand(time(NULL));
	for(int i=0; i<20; ++i)
	{
		Array[i]=(rand()%500)+1;
	}

	for(int i=0; i<20; ++i)
	{
		cout<<"["<<i<<"] = "<<Array[i]<<endl;
	}
	
	int iMatch=1;
	for(int i=1; i<=500; ++i)
	{
		iMatch=1;
		for(int j=0; j<20; ++j)
		{
			if( i!=Array[j] )
			{
				iMatch=0;
			}
			else
			{
				iMatch=1;
				break;
			}
		}
		if(iMatch==0)
			cout<<i<<endl;
	}
	
	return 0;
}