Compare two 3-digit numbers