#include <iostream.h>
#include <stdlib.h>

const int SIZE=20; // the size of the strings

main()
{
  int identify(const char[]);

  char input1[SIZE], input2[SIZE];
  int guess;

  cout << "Enter a string: ";
  cin.getline(input1,SIZE); 
  while(input1[0]) { // loop until a blank line was entered.
    cout << "Enter your guess: ";
    cin.getline(input2,SIZE);
    guess = atoi(input2);

    cout << " " << guess << endl;
    if (guess == identify(input1))
      cout << "Right!" << endl;
    else
      cout << "Wrong!" << endl;
  
    cout << "Enter a string: ";
    cin.getline(input1,SIZE);
  }
}


