#K45662. Compare Decorated House Numbers
Compare Decorated House Numbers
Compare Decorated House Numbers
You are given two strings representing decorated house numbers. Each string may contain leading zeros which should be ignored when comparing the numerical values.
Your task is to compare the two numbers and print FIRST if the first number is greater, SECOND if the second number is greater, or EQUAL if they are the same.
Formally, let \(a\) and \(b\) be the integer values of the two strings after removing any leading zeros. You should output:
- \(FIRST\) if \(a > b\)
- \(SECOND\) if \(a < b\)
- \(EQUAL\) if \(a = b\)
inputFormat
The input is given via standard input (stdin) and contains two strings separated by whitespace.
Each string represents a decorated house number and may include leading zeros.
outputFormat
Print the result to standard output (stdout):
- FIRST if the first number is greater.
- SECOND if the second number is greater.
- EQUAL if the two numbers are equal.
00123 0123
EQUAL