The number corresponds to the number of the respective device, e.g. hda is 0300, hda1 is 0301, sda is 0800, sda1 is 0801, etc. Sometimes, distributions that contain LILO come with boot. NNNN files from the system on which the distribution was created. Your BIOS may suffer from a bug that generates errors when trying to read more than one sector with a single call. LILO 0.11 is able to correct that problem.
Recent kernels are able to provide that information for most SCSI adapters.
Both types of addresses must correspond. In your partition table, they don't. LILO can try to fix the partition table. Please check the documentation.