Олимпиадный тренинг

Задача 33683. Wonderful Numbers 5


Задача

Темы: Цикл for

You are given two four-digit numbers A and B. Print in ascending order all four-digit numbers in the range from A to B, which record contains exactly three identical digits.

Input
Two integers A and B are entered.

Imprint
Print the answer to the problem.
 
Examples
# Input Output
1 1900
2100
1911
1999 2000
2022