#include <iostream>
using namespace std;

int main() {
	// your code goes here
	
	int points[2], counter = 1;

	// Read in first point:
	cin >> points[0];
	
	// Read until we meet our condition:
	do {
	    cin >> points[counter];
	    // toggle counter between 0 and 1
	    counter = (counter + 1) % 2;
	    
	    cout << "Checking: " << points[0] << " == " << points[1] << endl;
	    
	// Check if we are done:
	} while (points[0] != points[1]);
	cout << "They were!\n";
	
	return 0;
}