#1
#include <fstream>
#include <iostream>
using namespace std;
 
int main () 
{int a[10],b[10],i,j,data[10];

ofstream kingkong;
kingkong.open("King_Kong");
for(i=0;i<10;i++)
  {cin>>a[i]; 
  kingkong<<a[i]<<endl;
   
if(a[i]%2==0)
     {b[i]=0;}
     else
{b[i]=1;};
 /* kingkong<<b[i]<<endl;
  */};
kingkong.close();

ofstream kngkng;
kngkng.open("King_Kong2");
for(i=0;i<10;i++)
{  /*{cin>>a[i]; 
 /* kingkong<<a[i]<<endl;
   
if(a[i]%2==0)
     {b[i]=0;}
     else
{b[i]=1;};*/
 kngkng<<b[i]<<endl;
  };
kngkng.close();





ifstream kongking;
kongking.open("King_Kong2");
kongking>>a[i];
kongking>>b[i];
for(i=0;i<10;i++)
{
cout<<"   PRVI NIZ   "<<a[i]<<endl;

/*cout<<"   DRUGI NIZ   "<<b[i]<<endl;
*/}

for(i=0;i<10;i++)
{
/*kingkong<<b[i]<<endl;*/
cout<<"   DRUGI NIZ   "<<b[i]<<endl;

}
kongking.close();


   return 0;
}



//this program writes text in file and reads from it. This is from begining
//please like and thank you