Warm up

Time limit: 20 seconds

Problem

As a warm up problem, you just need to write a program to compare two positive integers and then to report which one is bigger. The two integers are, however, written in "vertical format".

Input

The first digit of each pair of number start on the same row, separated by a single space. The end of each input is marked by a '#' starting on a line of itself.

Output

For each pair of input integer, output "first" if the first number is bigger; output "second" if the second is bigger; output "equal", otherwise.

Sample Input

1 1
#
2 9
3 8
#
1 2
3
#
9 8
7 6
5 4
  3
#

Sample Output

equal
second
first
second

Author

Joe Chong