Here is the definition of the two numbers:
Reference number: printed on the bottom line of approval of a foreign tourist "Референс №». It is necessary to introduce whole number with leading zeros.
Confirmation number: printed on the top line of confirmation of a foreign tourist. The number can contain only numbers or numbers with letters. You should only enter the numbers.