text: <<<<<<< HEAD
  #include<iostream>
  #include<stdlib.h>
  using namespace std;
  int main()
  {
      int x[1000],i=0,count=0;
      for(;;)
      {
          cin>>x[i];
          cout<<endl;
          if(x[i]==42)
              break;
              count++;
              i++;
      }
      for(i=0;i<count;i++)
          cout<<x[i]<<endl;
  
      return 0;
  }
  
  
  
  
  
  
  
  
  =======
  #include<iostream>
  #include<stdlib.h>
  using namespace std;
  int main()
  {
      int x[1000],i=0,count=0;
      for(;;)
      {
          cin>>x[i];
          cout<<endl;
          if(x[i]==42)
              break;
              count++;
              i++;
      }
      for(i=0;i<count;i++)
          cout<<x[i]<<endl;
  
      return 0;
  }
  
  
  
  
  
  
  
  
  >>>>>>> efd4245fe427ffeefe49c72470b81a015d8dcf82
  