#include <fstream>
#include <stdlib.h>
#include <time.h>
using namespace std;
int main()
{
   srand(static_cast<unsigned>(time(NULL)));
   int m,n;
   ofstream fs;
   fs.open("BriansBrain500.val");
   int p=0;
   for(m=0;m<500;m++)
       {
        for(n=0;n<500;n++)
           {
            p= rand()%3;
            fs<<"("<<m<<","<<n<<")"<<"="<<p<<endl;
           }
    }
   fs<<endl;
    fs.close();
return 0;
}
