// G. Hagopian doing the PPP chapter drill
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;


/*
1. Write a program that consists of a while-loop that 
(each time around the loop) reads in two ints and then prints them. 
Exit the program when a terminating '|' is entered.
2. Change the program to write out the smaller value is: followed 
by the smaller of the numbers and the larger value is: followed by 
the larger value.
4. Change the program so that it uses doubles instead of ints.
5. Change the program so that it writes out the numbers are 
   almost equal after writing out which is the larger and the smaller 
   if the two numbers differ by less than 1.0/100.
*/
int main() {
	double a{}, b{};
	while (cin >> a >> b) {
		cout << a << " " << b << endl;
		if (a < b) cout << "The smaller value is " << a << endl;
		else cout << b << " is no bigger than " << a << endl;
		if (a == b) cout << "The numbers are equal.\n";
		if (abs(a - b)/min(a,b) < 0.01) cout << "The numbers are almost equal.\n";
	}
}