Compare two 4-digit numbers